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.

2D All the way! / Detailed Gradient-Filled Curves

Author
Message
MonoCoder
19
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 28th Jun 2007 21:52 Edited at: 6th Jul 2007 00:47
Hi. I've a question that's not urgent for the time being, but is definitely an interesting one that'll resurface later in my project. I want to be able to draw detailed smooth curves, like this:



But I'm not sure how to get started on this. Should I do this with memblocks? How do I create smooth curves (beziers)? How can I fill the area, not with one completely solid colour, but with a gradient? And how can I get this to curve properly with the line?

If someone could get me going in the right direction, that would be hugely appreciated.

Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Jul 2007 01:03
Here's a snippet I did for a challenge, might be of some use.



MonoCoder
19
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 6th Jul 2007 12:36
Whoa! Thanks Phaelax, that's really useful. I've just trimmed it a little for the line alone:



However, I've never used the built-in vector commands before, so it might take some work. But, is there a way to stop it creasing (keeping it all the same width), and have the start and end of the line reflect it's angle? Or is it all based on the data it's given?

Thanks again.

Login to post a reply

Server time is: 2025-05-16 03:16:08
Your offset time is: 2025-05-16 03:16:08