Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-07

Revision 55440 - TAChart: Allow 3-digit HTML color codes.

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sandro Cumerlato

Hello,
looking at revision 55440 I noticed two strange things:

1) 6 digits case: I do not understand why you "shl 8" values. Am I misunderstanding something?

2) 3 digits case: 3 digits codes should be shorthand, #FED should correspond to #FFEEDD html color IIRC (
https://stackoverflow.com/questions/3108860/how-to-use-3-digit-color-codes-rather-than-6-digit-color-codes-in-css )

Thank you for your clarifications.

Sandro Cumerlato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170704/ee2a5ea9/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: 2017-07-04 19.35.52.png
Type: image/png
Size: 180656 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170704/ee2a5ea9/attachment-0001.png>

Reply by email

Sandro Cumerlato
to Sandro Cumerlato

I respond myself :)

1) "shl 8" is necessary to get TFPColor values (The TFPColor record contains the Red, Green, Blue and Alpha channel values as left adjusted 16 bit words, with increasing intensity from 0 to $FFFF). Not TColor values as I thought.

2) 3 digits case has been just fixed in revision 55441.

Best regards.

Sandro Cumerlato

On Jul 4, 2017 7:47 PM, "Sandro Cumerlato"
wrote:

Hello,
looking at revision 55440 I noticed two strange things:

1) 6 digits case: I do not understand why you "shl 8" values. Am I misunderstanding something?

2) 3 digits case: 3 digits codes should be shorthand, #FED should correspond to #FFEEDD html color IIRC (https://stackoverflow.com/ questions/3108860/how-to-use-3-digit-color-codes-rather- than-6-digit-color-codes-in-css)

Thank you for your clarifications.

Sandro Cumerlato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170704/94a94c94/attachment.html>

Reply by email