Bitmap/Bresenham's line algorithm: Difference between revisions
Content deleted Content added
imported>Chinhouse |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 10:
{{trans|Python}}
<syntaxhighlight lang="11l">T Colour = BVec3
V black = Colour(0, 0, 0)
Line 109 ⟶ 100:
+-----------------+
</pre>
=={{header|360 Assembly}}==
{{trans|Rexx}}
Line 1,476 ⟶ 1,468:
=={{header|EasyLang}}==
[https://easylang.
{{trans|C}}
Line 1,519 ⟶ 1,511:
drawline 300 200 200 10
</syntaxhighlight>
=={{header|Elm}}==
Line 2,836 ⟶ 2,827:
This GUI implementation is for use with [http://miniscript.org/MiniMicro Mini Micro].
<syntaxhighlight lang="miniscript">
▲Img.line = function(x0, y0, x1, y1)
sign = function(a, b)
if a < b then return 1
Line 2,867 ⟶ 2,847:
while true
if x0 == x1 and y0 == y1 then break
e2 = err
Line 2,879 ⟶ 2,859:
end if
end while
end function
img=
drawLine img
gfx.clear
gfx.drawImage img, 0, 0
</syntaxhighlight>
|