Bitmap/Bézier curves/Cubic: Difference between revisions
Content added Content deleted
(Go solution) |
m (→{{header|Ruby}}: reference required code elsewhere) |
||
Line 550: | Line 550: | ||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
{{trans|Tcl}} |
{{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 |
<lang ruby>class Pixmap |
||
def draw_bezier_curve(points, colour) |
def draw_bezier_curve(points, colour) |