13.07.2015 Views

2D Drawing in FLTK

2D Drawing in FLTK

2D Drawing in FLTK

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Comb<strong>in</strong><strong>in</strong>g transformations fl_scale( float x, y=1 ); fl_translate( float x, y ); fl_rotate( float degrees ); Multiplies another transformation<strong>in</strong>to the current transform matrix Operations are done <strong>in</strong> reverse order: fl_rotate( 30. ); fl_translate( 100., 0. ); fl_beg<strong>in</strong>_polygon(); .....● Translate is done first, then rotate!CMPT166: <strong>FLTK</strong> draw<strong>in</strong>g 20 Feb 200911

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!