Bitmap/Write a PPM file: Difference between revisions

Content added Content deleted
(→‎Ada: Fixed tipo an better reference)
Tags: Mobile edit Mobile web edit
 
Line 9: Line 9:
{{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)