Bitmap/Midpoint circle algorithm: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 11: Line 11:
{{trans|Python}}
{{trans|Python}}


<syntaxhighlight lang="11l">T Colour
<syntaxhighlight lang="11l">T Colour = BVec3
Byte r, g, b

F (r, g, b)
.r = r
.g = g
.b = b

F ==(other)
R .r == other.r & .g == other.g & .b == other.b


V black = Colour(0, 0, 0)
V black = Colour(0, 0, 0)
Line 118: Line 109:
+-------------------------+
+-------------------------+
</pre>
</pre>

=={{header|Action!}}==
=={{header|Action!}}==
Part of the task is available in [http://www.rosettacode.org/wiki/Category:Action!_Bitmap_tools#RGBCIRCL.ACT RGBCIRCL.ACT].
Part of the task is available in [http://www.rosettacode.org/wiki/Category:Action!_Bitmap_tools#RGBCIRCL.ACT RGBCIRCL.ACT].