The snippet environment, and the original snippets were originally created by Øyvind Kolås for a paper submitted to GUADEC 2004.
All of his original snippet code is considered to be part of the public domain.
double xc = 128.0; double yc = 128.0; double radius = 100.0; double angle1 = 45.0 * (M_PI/180.0); /* angles are specified */ double angle2 = 180.0 * (M_PI/180.0); /* in radians */ cairo_set_line_width (cr, 10.0); cairo_arc (cr, xc, yc, radius, angle1, angle2); cairo_stroke (cr); /* draw helping lines */ cairo_set_source_rgba (cr, 1, 0.2, 0.2, 0.6); cairo_set_line_width (cr, 6.0);
1 則留言:
email publishing 圖片沒有秀出來
張貼留言