Set Solid Fill for Circle2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-01-05 06:03 PM
2010-01-05
06:03 PM
I'm having trouble specifying a solid fill for a simple 2D Circle script.
The code I'm using is:
PEN 1 SET FILL "Solid Fill" CIRCLE2 0,0,0.03Unfortunately all I get is the outline of the circle - I'm hoping for it to be filled black, but from what I can tell, the only way to achieve that is by using POLY2_B?
What am I doing wrong?
Thanks,
Derek
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
3 REPLIES 3
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-01-05 06:13 PM
2010-01-05
06:13 PM
Circle2 only draws the outline of the circle. You are correct in that you need to use POLY2_B command.
Try this
Try this
PEN outline_pen_parameter FILL fill_type_parameter POLY2_B 2, 3, fill_pen_parameter, fill_background_pen_parameter, 0, 0, 900, .03, 360, 4001
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-01-05 06:35 PM
2010-01-05
06:35 PM
Thanks for that! Any chance you could quickly explain the 900 and 4001?
Cheers,
Derek
Cheers,
Derek
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2010-01-05 06:44 PM
2010-01-05
06:44 PM
Check out page 141 and onward in the GDL Reference Manual.
They are status codes, where 900 defines the centerpoint of a Circle. 4000 has 2 variations, one is an arc using a centerpoint (defined by 900) and angle, and the other is a full circle using a centerpoint and radius. The one used here is full circle. .03 deifnes the radius, 360 a full circle in degrees.
They are status codes, where 900 defines the centerpoint of a Circle. 4000 has 2 variations, one is an arc using a centerpoint (defined by 900) and angle, and the other is a full circle using a centerpoint and radius. The one used here is full circle. .03 deifnes the radius, 360 a full circle in degrees.