Graduated circle in BASIC
Richard Ashbery (495) 163 posts |
Is it possible to create a graduated shape (eg. a colour circle) in BASIC? Has anyone any code to perform this function? |
Jeffrey Lee (213) 6048 posts |
If you’re happy with a horizontal or vertical gradient then you could do it by changing the graphics window. I.e. render the shape N times, with the graphics window set up to render a thin slice of the shape. |
Richard Ashbery (495) 163 posts |
Thanks for your reply Jeffrey – I guess I could cobble something together to do that. Ideally I was thinking more in terms of what ArtWorks does by graduating a circle from its centre to its edge. |
Jeffrey Lee (213) 6048 posts |
A concentric gradient on a circle is easy, just render lots of circles ontop of each other :) FOR A=200 TO 1 STEP -1 GCOL A,A,A : REM (I think the GCOL statement allows you to use RGB?) CIRCLE FILL 200,200,A NEXT A |
Richard Ashbery (495) 163 posts |
Simpler than I thought – I should have experimented before asking you but many thanks for example. |