Jump to content

Bitmap/Bézier curves/Cubic: Difference between revisions

m
→‎{{header|Ruby}}: reference required code elsewhere
(Go solution)
m (→‎{{header|Ruby}}: reference required code elsewhere)
Line 550:
=={{header|Ruby}}==
{{trans|Tcl}}
 
Requires code from the [http://rosettacode.org/wiki/Bitmap#Ruby Bitmap] and [http://rosettacode.org/wiki/Bitmap/Bresenham%27s_line_algorithm#Ruby Bresenham's line algorithm] tasks
 
<lang ruby>class Pixmap
def draw_bezier_curve(points, colour)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.