Anonymous user
Bitmap/Bézier curves/Cubic: Difference between revisions
m
→{{header|Tcl}}: add links to referenced pages
m (→{{header|Tcl}}: add sample image) |
m (→{{header|Tcl}}: add links to referenced pages) |
||
Line 275:
=={{header|Tcl}}==
{{libheader|Tk}}
This solution can be applied to any number of points. Uses code from [[Basic_bitmap_storage#Tcl|Basic bitmap storage]] (<tt>newImage</tt>, <tt>fill</tt>), [[Bresenham's_line_algorithm#Tcl|Bresenham's line algorithm]] (<tt>drawLine</tt>), and [[Midpoint_circle_algorithm#Tcl|Midpoint circle algorithm]] (<tt>drawCircle</tt>)
<lang tcl>package require Tcl 8.5
package require Tk
|