Page MenuHome

Colour Picker UI - Copy pasting a hex code with a # results in the wrong colour
Closed, ResolvedPublic

Description

System Information
All operating systems

Blender Version
Broken: 44991a01325

Short description of error
A artist copies a hex code from another program and has the conventional # at the start.
They then try to paste this directly into blender (cycles RGB node) colour ui panel under the hex area.
The hex area clips off the string to 6 characters with the # at the start, giving the wrong colour

Exact steps for others to reproduce the error

  1. open blender
  2. copy this hex code including # - #ABABAB
  3. paste this into a hex colour input in blender
  4. Notice how it is yellow instead of grey

Expected behaviour:
Either the # gets automatically stripped out... Or the first 6 usable characters are used (with a max of 7 characters).

Event Timeline

Joel Godin (FloridaJo) changed the task status from Unknown Status to Archived.May 3 2017, 2:29 PM
Joel Godin (FloridaJo) claimed this task.

The '#' is not part of a 'hex' code. A hex code is a six-digit, three-byte hexadecimal number. # is not part of a hex code.

Yes I understand, but it just is not artist friendly. Especially when all web use aswell is using a # at the start of the code.