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.

DarkBASIC Discussion / Generated Graphics

Author
Message
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Apr 2010 18:44
I've been having a lot of fun trying to create some nice graphics effects that robert the robot might want to use for his DarkGUI.
Here's some of the things I've done so far.
These are all generated by functions I haven't done any drawing here.

PS How do I make thumbnail links?

If you have made graphics like this feel free to post them on here.

Nice windows-like blue gradient.
Two white to blue gradients laid on top of each other, one horizontal, one vertical. The second gradient uses the first to create itself and so merges the two together.


The same but using red and cyan to show what is happening.


Here I messed up trying to use AND and OR and some strange castles appeared


Here's another mistake (mistakes are sometimes pretty) I was trying to make a radial gradient but I overloaded the colour and it spat magenta out the other end.


I sorted out the overload and played about with the colours.








Changing the function had a strange effect






Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Apr 2010 18:48
Interesting. RTR is currently using these, or you are planning on giving these to him? Looks cool to me.


P.s
Castles? They dont look like castles.....

And indeed, the last few pics were weird.

Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Apr 2010 18:53
Quote: "RTR is currently using these, or you are planning on giving these to him? Looks cool to me."

Thanks, I don't think these are particularly useful but I've learned from them. I am using one as my desktop background though

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Apr 2010 18:57
Quote: "I am using one as my desktop background though"


Lol. iwas thinking of stealing........

Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Apr 2010 19:56
Sure use whatever you want. There are tile-able too.

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Apr 2010 21:05
@Obese

That's quite cool! I remain curious how you generated those castles? Any chance we get to see some code?

TheComet

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 11th Apr 2010 21:59
Hi all. It looks like a graphic challenge.One month ago I was bore at home and start painting with code and....that what I had.
Sorry ...if it is the wrong place I will delete it.

cheers.




I'm not a grumpy grandpa
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 11th Apr 2010 22:28
@chafari

It's in just the right place And very cool.

chafari
Valued Member
17
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 11th Apr 2010 22:57
@Dark Daragon
Thanks !

cheers.

I'm not a grumpy grandpa
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 12th Apr 2010 04:15 Edited at: 12th Apr 2010 06:51
Clone object isn't recognised as a command?

@TheComet
I've changed the code since then but I'll try to explain why the castles appeared.
My gradient function takes a point in a gradient "i" and finds what factor of each colour should be at that point. Then I add the two colours together to make the colour that is used for that point. i.e. blue*0.5 + red*0.5 = magenta.

I wasn't sure of the best way to combine the colours, I tried using OR and AND.

Now the first gradient in the castle one was a normal addition style one, there were quite a few on top of each other, about five, but I can't remember what they were. I think some were OR and AND ones.

The gradient is worked out pixel by pixel, so when I got the pixel colour for the first gradient I could use it as a parameter for the second gradient. So the OR and AND combinations were comparing every colour in the gradient to a fixed colour and that's how it came out.

I'm still not sure if that is totally accurate as to what happened lol.

[edit]

woohoo I just worked out how to do a radial gradient.

Here's the code

I like how it seems to have a yellowish glow.

[edit]
here is a sort of animation using the radial gradient.
Sorry about the resolution, my old PC can only run this at 11fps so I limited it there. If you want to see it in more detail remove the sync cap and change xmax and ymax to whatever resolution you like.


29 games
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: not entirely sure
Posted: 19th Apr 2010 00:02
@obese

That is very cool.
Sinani201
17
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 27th Apr 2010 07:25 Edited at: 27th Apr 2010 07:26
Quote: "PS How do I make thumbnail links?"


If you upload a file to ImageShack (though I prefer TinyPic), it makes a thumbnail of the image you've uploaded. Here's an example with a box:

Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 28th Apr 2010 02:27
Oh I thought Apollo was able to make thumbnails of images.
Can it?
Great generic pic Sinani can't get more generic than that

Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 1st May 2010 16:59
Wow, I like these effects - could you post the source code for them please?

Some of them could be fantastic for DarkGUI - the ability to use gradient fills would be perfect for generating a Vista look (I've been studying the components, they make extensive use of subtle shading...)

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."

Login to post a reply

Server time is: 2024-04-24 01:37:53
Your offset time is: 2024-04-24 01:37:53