@@ -89,7 +89,7 @@ int main(void)
8989
9090 // Cotangent (orange)
9191 DrawLineEx ((Vector2 ){ center .x , limitMin .y }, (Vector2 ){ cotangentPoint .x , limitMin .y }, 2.0f , ORANGE );
92- DrawLineDashed (center , cotangentPoint , 10.0f , 4.0f , ORANGE );
92+ DrawLineDashed (center , cotangentPoint , 10 , 4 , ORANGE );
9393
9494 // Side background
9595 DrawLine (580 , 0 , 580 , GetScreenHeight (), (Color ){ 218 , 218 , 218 , 255 });
@@ -106,48 +106,48 @@ int main(void)
106106 DrawLineEx ((Vector2 ){ start .x , start .y + start .height /2 }, (Vector2 ){ start .x + start .width , start .y + start .height /2 }, 2.0f , GRAY );
107107
108108 // Wave graph axis labels
109- DrawText ("1" , start .x - 8 , start .y , 6 , GRAY );
110- DrawText ("0" , start .x - 8 , start .y + start .height /2 - 6 , 6 , GRAY );
111- DrawText ("-1" , start .x - 12 , start .y + start .height - 8 , 6 , GRAY );
112- DrawText ("0" , start .x - 2 , start .y + start .height + 4 , 6 , GRAY );
113- DrawText ("360" , start .x + start .width - 8 , start .y + start .height + 4 , 6 , GRAY );
109+ DrawText ("1" , ( int ) start .x - 8 , ( int ) start .y , 6 , GRAY );
110+ DrawText ("0" , ( int ) start .x - 8 , ( int ) start .y + ( int ) start .height /2 - 6 , 6 , GRAY );
111+ DrawText ("-1" , ( int ) start .x - 12 , ( int ) start .y + ( int ) start .height - 8 , 6 , GRAY );
112+ DrawText ("0" , ( int ) start .x - 2 , ( int ) start .y + ( int ) start .height + 4 , 6 , GRAY );
113+ DrawText ("360" , ( int ) start .x + ( int ) start .width - 8 , ( int ) start .y + ( int ) start .height + 4 , 6 , GRAY );
114114
115115 // Sine (red - vertical)
116116 DrawLineEx ((Vector2 ){ center .x , center .y }, (Vector2 ){ center .x , point .y }, 2.0f , RED );
117- DrawLineDashed ((Vector2 ){ point .x , center .y }, (Vector2 ){ point .x , point .y }, 10.0f , 4.0f , RED );
117+ DrawLineDashed ((Vector2 ){ point .x , center .y }, (Vector2 ){ point .x , point .y }, 10 , 4 , RED );
118118 DrawText (TextFormat ("Sine %.2f" , sinRad ), 640 , 190 , 6 , RED );
119119 DrawCircleV ((Vector2 ){ start .x + (angle /360.0f )* start .width , start .y + ((- sinRad + 1 )* start .height /2.0f ) }, 4.0f , RED );
120120 DrawSplineLinear (sinePoints , WAVE_POINTS , 1.0f , RED );
121121
122122 // Cosine (blue - horizontal)
123123 DrawLineEx ((Vector2 ){ center .x , center .y }, (Vector2 ){ point .x , center .y }, 2.0f , BLUE );
124- DrawLineDashed ((Vector2 ){ center .x , point .y }, (Vector2 ){ point .x , point .y }, 10.0f , 4.0f , BLUE );
124+ DrawLineDashed ((Vector2 ){ center .x , point .y }, (Vector2 ){ point .x , point .y }, 10 , 4 , BLUE );
125125 DrawText (TextFormat ("Cosine %.2f" , cosRad ), 640 , 210 , 6 , BLUE );
126126 DrawCircleV ((Vector2 ){ start .x + (angle /360.0f )* start .width , start .y + ((- cosRad + 1 )* start .height /2.0f ) }, 4.0f , BLUE );
127127 DrawSplineLinear (cosPoints , WAVE_POINTS , 1.0f , BLUE );
128128
129129 // Tangent (purple)
130130 DrawLineEx ((Vector2 ){ limitMax .x , center .y }, (Vector2 ){ limitMax .x , tangentPoint .y }, 2.0f , PURPLE );
131- DrawLineDashed (center , tangentPoint , 10.0f , 4.0f , PURPLE );
131+ DrawLineDashed (center , tangentPoint , 10 , 4 , PURPLE );
132132 DrawText (TextFormat ("Tangent %.2f" , tangent ), 640 , 230 , 6 , PURPLE );
133133
134134 // Cotangent (orange)
135135 DrawText (TextFormat ("Cotangent %.2f" , cotangent ), 640 , 250 , 6 , ORANGE );
136136
137137 // Complementary angle (beige)
138- DrawCircleSectorLines (center , radius * 0.6f , - angle , -90.0f , 36.0f , BEIGE );
138+ DrawCircleSectorLines (center , radius * 0.6f , - angle , -90.0f , 36 , BEIGE );
139139 DrawText (TextFormat ("Complementary %0.f°" ,complementary ), 640 , 150 , 6 , BEIGE );
140140
141141 // Supplementary angle (darkblue)
142- DrawCircleSectorLines (center , radius * 0.5f , - angle , -180.0f , 36.0f , DARKBLUE );
142+ DrawCircleSectorLines (center , radius * 0.5f , - angle , -180.0f , 36 , DARKBLUE );
143143 DrawText (TextFormat ("Supplementary %0.f°" ,supplementary ), 640 , 130 , 6 , DARKBLUE );
144144
145145 // Explementary angle (pink)
146- DrawCircleSectorLines (center , radius * 0.4f , - angle , -360.0f , 36.0f , PINK );
146+ DrawCircleSectorLines (center , radius * 0.4f , - angle , -360.0f , 36 , PINK );
147147 DrawText (TextFormat ("Explementary %0.f°" ,explementary ), 640 , 170 , 6 , PINK );
148148
149149 // Current angle - arc (lime), radius (black), endpoint (black)
150- DrawCircleSectorLines (center , radius * 0.7f , - angle , 0.0f , 36.0f , LIME );
150+ DrawCircleSectorLines (center , radius * 0.7f , - angle , 0.0f , 36 , LIME );
151151 DrawLineEx ((Vector2 ){ center .x , center .y }, point , 2.0f , BLACK );
152152 DrawCircleV (point , 4.0f , BLACK );
153153
0 commit comments