Bitmap/Bresenham's line algorithm: Difference between revisions

Content added Content deleted
imported>Chinhouse
 
Line 10: Line 10:
{{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 109: Line 100:
+-----------------+
+-----------------+
</pre>
</pre>

=={{header|360 Assembly}}==
=={{header|360 Assembly}}==
{{trans|Rexx}}
{{trans|Rexx}}