Color Palette Select

This forum is currently in read-only mode.
From the Asset Store
A set of retro 16-Bit Neon UI elements to make your menus pop!
  • I want to create a color pallete for my application.The problem is that i have no idea how to change the color of the brush whenever i click on a certain part of the color pallete.Creating color boxes for each color would take forever.

    Is there any way that this could be achieved through Python??.

  • what about Arrays? You could make an array to create ie. 18 different White sprites (small box or whatever), arrange them on grid, change their colors and pv.

    You would have:

    sprite1 - white, pv0

    sprite2 - grey, pv1

    sprite3 - red, pv2


    not sure how to make an expression for assigning colors, but it's just an idea :)

  • I could do that shinkan ,But i want the color pallete to work like photoshop's color pallete for instance.If the cursor is over a certain area of the color pallete then the color box would show that certain color

    where the cursor is at that particular part of the color pallete.

    Here is an example of what i am trying to do.

    <img src="" border="0" />

  • Allright then. You will need extreamly large Array ;P

    but seriously, I'am affraid you have to options only, made a plugin for color pallete or find as You say something in Python maybe :/

  • shinkan Lol yes i think the array idea would be a bad move.I see that i would have to choose each color on a per pixel base.Thank's for the help shinkan.

  • hmm another one.

    ImageManipulator object. You could load image with color pallete and then using expression "Get B", "Get G", Get R" get color from mouse X and Y position.

  • Just for you Draven. <img src="smileys/smiley2.gif" border="0" align="middle">

    Common Dialog Object Color Selector

  • heh newt that's to simple ;P he's aiming for more pro like :)

    good start anyway :)

  • Thanks newt ,But that's only for the canvas ,I need to change the color to a sprite or particle.Sprite's And particles has fixed color filters as far as i know.:)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can set the initial color for particles by right clicking, and selecting use expression.


    Like wise you can set sprite to pure white, and use a color filter for it.

    Same goes for particles, you can use a color filter on them, just set the preferences to black, or white, or gray.

  • Thank you Newt.It's works fantastic.I will put an example cap at my tutorials section.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)