There are many ways to pick a color from within an application, so I contribute another.
You select any possible color in a the color palette, modify the brightness and press ok.
Some subs useful with colors which were used are enabled as functions in the class:
- ParseColor - returns the components of the color
- HSLToRGB
- COLORtoHSL
The class needs the pictures in files.
Edit: ver 1.1, landscape fills the screen.
Edit: Ver. 2.0
Edit: Ver 2.1 limits the cursor movements to the palette.
Edit: ver 2.2 - added the freeze orientation code by stevel05 (Thanks !)
from here http://www.b4x.com/android/forum/threads/freeze-orientation.41681/
Edit: Ver 2.3 with modified code for Freezing the orientation. This may behave wrongly with some devices.
Edit: CircularPalette added as another class. It is very simple and is a color picker, see photo.
You select any possible color in a the color palette, modify the brightness and press ok.
Some subs useful with colors which were used are enabled as functions in the class:
- ParseColor - returns the components of the color
- HSLToRGB
- COLORtoHSL
The class needs the pictures in files.
Edit: ver 1.1, landscape fills the screen.
Edit: Ver. 2.0
Edit: Ver 2.1 limits the cursor movements to the palette.
Edit: ver 2.2 - added the freeze orientation code by stevel05 (Thanks !)
from here http://www.b4x.com/android/forum/threads/freeze-orientation.41681/
Edit: Ver 2.3 with modified code for Freezing the orientation. This may behave wrongly with some devices.
Edit: CircularPalette added as another class. It is very simple and is a color picker, see photo.
Attachments
Last edited: