Color wheel: Difference between revisions

Content added Content deleted
m (correction: cyan (blue) at 210 degrees)
Line 9: Line 9:


=={{header|Applesoft BASIC}}==
=={{header|Applesoft BASIC}}==
The lo-resolution GRaphics screen is limited to 16 colors. Ordered dithering is used for the saturation. Pink is mixed with violet and magenta, and aqua is mixed with light blue and green. These lighter colors are randomly mixed with the saturation dither. Note that the four Apple II colors can be seen at the 90 degree marks: orange at 30 degrees, green at 120 degrees, cyan (blue) at 120 degrees, and violet at 300 degrees.
The lo-resolution GRaphics screen is limited to 16 colors. Ordered dithering is used for the saturation. Pink is mixed with violet and magenta, and aqua is mixed with light blue and green. These lighter colors are randomly mixed with the saturation dither. Note that the four Apple II colors can be seen at the 90 degree marks: orange at 30 degrees, green at 120 degrees, cyan (blue) at 210 degrees, and violet at 300 degrees.
<syntaxhighlight lang="gwbasic"> 100 LET R = 3.1415926535 / 180
<syntaxhighlight lang="gwbasic"> 100 LET R = 3.1415926535 / 180
110 LET YO = 20
110 LET YO = 20
Line 39: Line 39:
370 IF SCRN( X,Y) = 0 THEN PLOT X,Y:P = P + 1: IF P > = 9 THEN P = 0
370 IF SCRN( X,Y) = 0 THEN PLOT X,Y:P = P + 1: IF P > = 9 THEN P = 0
380 NEXT I,S</syntaxhighlight>
380 NEXT I,S</syntaxhighlight>

=={{header|AppleScript}}==
=={{header|AppleScript}}==