Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Fast filled ellipses and lines with colour change

Author
Message
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 27th Jan 2007 18:49
Here are some functions I just put together, which can be used to draw ellipses which have up to four different colours. It has a line function which although needed by the ellipse function, can be used on its own. Both functions need the third function col_phase to transition between the colours smoothly.

Here is a very colourful example showing the average time to draw an ellipse:


if you do not have the matrix_utils plugin, then you will need to put this function in at the bottom as well:



On my slow computer, it only takes about 2ms for each ellipse.

Login to post a reply

Server time is: 2024-11-26 13:06:57
Your offset time is: 2024-11-26 13:06:57