playcanvas / playcanvas/editor
Show 0-1 color values in the color picker to match code values
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 215
- Avg merge
- 1d 29m
- Merged PRs (30d)
- 30
Description
Feature request
Could be really nice if the editors color values also had a 0-to-1 representation as referenced at https://developer.playcanvas.com/en/tutorials/controlling-lights/
Right now there is:

- and I am forced to do this:
.light.color.set(224/255, 218/255, 155/255);
or
use a calculator to get the correct decimal.
A solution like the following would ease a lot:

- as the decimal could be written in faster than writing "224/255, 218/255, 155/255"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the editor's color-picker implementation and inspect how its current color values are displayed and edited. Add a 0-to-1 representation alongside the existing values, using the requested example as the target behavior. Verify that entering decimal values produces the corresponding color in the editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100