Bitmap/Bresenham's line algorithm: Difference between revisions

Content deleted Content added
add Ruby
m →‎{{header|Ruby}}: update example
Line 837:
end
 
bitmap = Pixmap.new(30500, 30500)
bitmap.draw_linefill(Pixel[0,0], Pixel[14,29], RGBColour::BLACKBLUE)
10.step(430, 60) do |a|
bitmap.draw_line(Pixel[0,0], Pixel[29,14], RGBColour::BLACK)
bitmap.draw_line(Pixel[010,29 10], Pixel[14490,0a], RGBColour::BLACKYELLOW)
bitmap.draw_line(Pixel[010,29 10], Pixel[29a,14490], RGBColour::BLACKYELLOW)</lang>
end
bitmap.draw_line(Pixel[010,0 10], Pixel[29490,14490], RGBColour::BLACKYELLOW)</lang>
 
=={{header|Tcl}}==