Jump to content

Talk:HTML color names table: Difference between revisions

From LilyPond wiki
Latest comment: 24 December 2025 by Lemzwerg in topic Example?
Example?: new section
 
Example?: Reply
Line 2: Line 2:


Please add a LilyPond code example (and/or link to the documentation) how to include such an HTML color. -- [[User:Lemzwerg|Lemzwerg]] ([[User talk:Lemzwerg|talk]]) 04:56, 24 December 2025 (UTC)
Please add a LilyPond code example (and/or link to the documentation) how to include such an HTML color. -- [[User:Lemzwerg|Lemzwerg]] ([[User talk:Lemzwerg|talk]]) 04:56, 24 December 2025 (UTC)
:Thanks for showing the LilyPond code; however, why do you use <code>rgb-color</code>? Why not something like <code>\override Flag.color = "#E30074"</code> or <code>\markup \with-color "#E30074"</code> instead, which is much simpler?  You could describe this in the introduction, then leaving out the last column completely...
:Function <code>rgb-color</code> only makes sense IMHO if you actually have values between 0 and&nbsp;1. -- [[User:Lemzwerg|Lemzwerg]] ([[User talk:Lemzwerg|talk]]) 12:35, 24 December 2025 (UTC)

Revision as of 12:35, 24 December 2025

Example?

Please add a LilyPond code example (and/or link to the documentation) how to include such an HTML color. -- Lemzwerg (talk) 04:56, 24 December 2025 (UTC)Reply

Thanks for showing the LilyPond code; however, why do you use rgb-color? Why not something like \override Flag.color = "#E30074" or \markup \with-color "#E30074" instead, which is much simpler? You could describe this in the introduction, then leaving out the last column completely...
Function rgb-color only makes sense IMHO if you actually have values between 0 and 1. -- Lemzwerg (talk) 12:35, 24 December 2025 (UTC)Reply