using GFX_PI instead of M_PI in graph demo
This commit is contained in:
parent
2513b54e71
commit
8219311877
@ -85,7 +85,7 @@ int main(void) {
|
|||||||
|
|
||||||
// Draw a sine wave
|
// Draw a sine wave
|
||||||
for(i = 0; i < gwinGetWidth(gh); i++) {
|
for(i = 0; i < gwinGetWidth(gh); i++) {
|
||||||
gwinGraphDrawPoint(gh, i-gwinGetWidth(gh)/2, 80*sin(2*0.2*M_PI*i/180));
|
gwinGraphDrawPoint(gh, i-gwinGetWidth(gh)/2, 80*sin(2*0.2*GFX_PI*i/180));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modify the style
|
// Modify the style
|
||||||
@ -95,7 +95,7 @@ int main(void) {
|
|||||||
|
|
||||||
// Draw a different sine wave
|
// Draw a different sine wave
|
||||||
for(i = 0; i < gwinGetWidth(gh)*5; i++) {
|
for(i = 0; i < gwinGetWidth(gh)*5; i++) {
|
||||||
gwinGraphDrawPoint(gh, i/5-gwinGetWidth(gh)/2, 95*sin(2*0.2*M_PI*i/180));
|
gwinGraphDrawPoint(gh, i/5-gwinGetWidth(gh)/2, 95*sin(2*0.2*GFX_PI*i/180));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change to a completely different style
|
// Change to a completely different style
|
||||||
|
Loading…
Reference in New Issue
Block a user