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.

AppGameKit Classic Chat / Background color

Author
Message
cryptojoe
11
Years of Service
User Offline
Joined: 27th Sep 2012
Location: Michigan U.S.A
Posted: 21st May 2013 07:46 Edited at: 21st May 2013 07:57
dose anyone know an easy way to change the background color from black to white?

red,green and blue would be nice to... I'm making a test environment that I can put sprites in to see how they look...

I'm sorry what I'm asking is... is there a command that lets you change the background color? I have not be abele to find one...
cryptojoe
11
Years of Service
User Offline
Joined: 27th Sep 2012
Location: Michigan U.S.A
Posted: 21st May 2013 08:49 Edited at: 21st May 2013 08:50
I came up with something that works...
easter bunny
11
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 21st May 2013 08:57 Edited at: 21st May 2013 08:59
You could create a sprite using tmp=CreateSprite(0) and use SetSpriteDepth(tmp,9999) then SetSpriteColor(tmp,r,g,b,a)
this'll put it behind all other sprites, just make sure you don't ever delete it and it'll be fine.
But I thought there was a command to set the default draw colour anyway??

edit: here you go:
SetClearColor( red, green, blue )

&&
SetBorderColor( red, green, blue )


cryptojoe
11
Years of Service
User Offline
Joined: 27th Sep 2012
Location: Michigan U.S.A
Posted: 21st May 2013 09:42
Thanks... after some thought I came up with this:


its meant to test 2 sprites against a background and each other... But I may do a rewrite using your code snippets....

Login to post a reply

Server time is: 2024-05-04 12:03:43
Your offset time is: 2024-05-04 12:03:43