Jump to content

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>)
This solution can be applied to any number of points
<lang tcl>package require Tcl 8.5
package require Tk
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.