Next: , Previous: , Up: Graphics   [Contents][Index]


2.4.4 Lines and Shapes

Sprites are fun, but sometimes simple, untextured lines and polygons are desired. That’s where the (chickadee render shapes) module comes in!

Scheme Procedure: draw-line start end [#:thickness 0.5] [#:feather 1.0] [#:cap round] [#:color] [#:shader]

Draw a line segment from start to end. The line will be thickness pixels thick with an antialiased border feather pixels wide. The line will be colored color. cap specifies the type of end cap that should be used to terminate the lines, either none, butt, square, round, triangle-in, or triangle-out. Advanced users may use the shader argument to override the built-in line segment shader.