playcanvas / playcanvas/editor

Show 0-1 color values in the color picker to match code values

Open
#104 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area: editor interface enhancement
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:
image

  • 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:
image

  • as the decimal could be written in faster than writing "224/255, 218/255, 155/255"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.