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.

Newcomers AppGameKit Corner / Would this be useful to anyone (Colour Picker)?

Author
Message
damothegreat
User Banned
Posted: 5th Jan 2017 13:16 Edited at: 28th Jan 2017 10:17
damothegreat
User Banned
Posted: 6th Jan 2017 01:03 Edited at: 6th Jan 2017 12:09
more cool tools to come
Using Tier 1 AppGameKit V2
Started coding with AMOS
Works with a Lenovo IdeaPad 700, 1TB SSD (Data), 128GB HD (System), 12GB Ram, GeForce Nvdia 950M, Windows 10, 2.3Ghz (Turbo to 3.2ghz when required)
hoyoyo80
7
Years of Service
User Offline
Joined: 11th May 2016
Location:
Posted: 8th Jan 2017 09:43
some thing my not come in handy now...but later i use search function...haha...Thanks in advance
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 16th Jan 2017 10:17 Edited at: 16th Jan 2017 10:30
Hello Damo, thanks for the color picker. It reminds me of something though...

I had been trying to make a 'sky'. But just slapping a blue sky on a skybox does not look good.

Take a look at this magnified sky texture. The picture consisted of variations of lighter and darker blue.
Our eyes does not receive a plain blue color of the sky. Instead each pixels will be darker or lighter blue because of constant environmental light scattering.
It would be great if we can modify the plain blue texture so that each pixels will be different each frame, and texture the sky with that each frame. It'll look like a natural sky.


So, I have an idea;
1 - Get a plain sky blue image
2 - modify each pixels on the texture, so that each pixels will randomly become darker or lighter blue. This will result in uneven, organic blue of the sky.
3- texture the skycube with that image
4- on the next loop frame, modify the blue image again
5- this will result in a dynamic-looking color of the sky, just like the real sky.
6- repeat each cycle

Can you try making the texture modifier so that it can be used for the sky? Thanks
damothegreat
User Banned
Posted: 16th Jan 2017 10:29 Edited at: 28th Jan 2017 10:17
hakimfullmetal
9
Years of Service
User Offline
Joined: 17th Feb 2015
Location:
Posted: 18th Feb 2017 12:22
Anybody knows why damothegreat was banned?
Just curious, because I almost never see anybody get banned in this forum
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 18th Feb 2017 23:10
His attitude in certain threads, and his childish behavior in deleting all his posts (as evident in this thread) whenever he got upset. It's a shame because he actually was a decent coder, just not very mature at times. I don't believe it was his first offense though.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 19th Feb 2017 19:02
Perhap's the moderator could update the post with the code for the users ^^.

I'm looking for a color picker example .
AGK2 tier1 - http://www.dracaena-studio.com
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Feb 2017 21:03
i would just grab a colour gradient from your paint proggy and then use creatememblockfromimage() to pick the colour
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 19th Feb 2017 21:43
There is no name on this code snippet, I don't recall where I grabbed it from.
You can simply call the function and it will display a colour picker.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
damothegreat
User Banned
Posted: 20th Feb 2017 18:30
Hope this one helps too - my version


Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 21st Feb 2017 09:40
Hi

Thank you for your code .

I have tried to create a color picker like in photoshop (with a rainbow and a colored square to pick the color with shade (black/white/color)).
I have use a code I have found on the code base If I remember, or on the TGC forum.

I hope this can be usefull for you

AGK2 tier1 - http://www.dracaena-studio.com
damothegreat
User Banned
Posted: 22nd Feb 2017 18:55
Yeah cheers - that's cool - often wondered what the code is to create that spectrum - useful.

Here is something else with Textures creation - something that hakimfullmetal was asking



Enjoy!

Damian
damothegreat
User Banned
Posted: 22nd Feb 2017 19:39
This one a bit better



Damo
damothegreat
User Banned
Posted: 22nd Feb 2017 22:18 Edited at: 22nd Feb 2017 22:27
Nice grass

Line 20
// Grass

textureimage = createtexture(500,500, makecolor(0,255,0) ,50)

// Water

textureimage = createtexture(500,500, makecolor(0,0,255) ,50)

// Road

textureimage = createtexture(500,500, makecolor(255,255,255) ,50)


Damo

Login to post a reply

Server time is: 2024-04-25 08:09:44
Your offset time is: 2024-04-25 08:09:44