fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#rrggbb

0 posts0 participants0 posts today
randomMDN<p>🦖 &lt;input type="color"&gt; 🦖</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.mozilla.org/en-US/do</span><span class="invisible">cs/Web/HTML/Element/input/color</span></a></p><p>&lt;input&gt; elements of type color provide a user interface element that lets a user specify a color, either by using a visual color picker interface or by entering the color into a text field in <a href="https://botsin.space/tags/rrggbb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rrggbb</span></a> hexadecimal format.</p><p><a href="https://botsin.space/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://botsin.space/tags/HTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTML</span></a></p>
GlitchyZorua :blobfoxcofe:<p>You've heard of <span class="h-card" translate="no"><a href="https://toot.melonland.net/@mk" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>mk</span></a></span>'s Swatch Time, but have you heard of the Hex Clock?</p><p>Brief Explanation: </p><p>basically, the text changes colors depending on what time it is, in hex (<a href="https://wetdry.world/tags/RRGGBB" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RRGGBB</span></a>), in this case, the hours are red, the minutes are green, and the seconds are blue. (in this case, it would be <a href="https://wetdry.world/tags/HHMMSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HHMMSS</span></a>)</p><p>If you want a better hexclock, here you go: <a href="https://www.jacopocolo.com/hexclock/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">jacopocolo.com/hexclock/</span><span class="invisible"></span></a></p><p>If you played Hacknet before, you would exactly get the reference.</p><p>For those who do not know what Swatch time is, ehhh... i'll let melon explain that here: <a href="https://wiki.melonland.net/swatch_time" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">wiki.melonland.net/swatch_time</span><span class="invisible"></span></a></p><p>You can view it live here: <a href="https://retrojcities.neocities.org" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">retrojcities.neocities.org</span><span class="invisible"></span></a></p>
Phosh<p>Initially <a href="https://fosstodon.org/tags/feedbackd" class="mention hashtag" rel="tag">#<span>feedbackd</span></a> supported a set of color names (that matched the LED color) as multicolor LED support was still in the makings in the kernel. With the next release you can use arbitrary RGB colors (<a href="https://fosstodon.org/tags/RRGGBB" class="mention hashtag" rel="tag">#<span>RRGGBB</span></a>). On single color<br />leds we still fall back to that color.</p><p><a href="https://fosstodon.org/tags/feedbackd" class="mention hashtag" rel="tag">#<span>feedbackd</span></a> <a href="https://fosstodon.org/tags/phosh" class="mention hashtag" rel="tag">#<span>phosh</span></a></p>
bit101<p><span class="h-card" translate="no"><a href="https://mstdn.ca/@martinduparc" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>martinduparc</span></a></span> Yes, I'm very familiar with the canvas api. You can set named css colors, "<a href="https://mstdn.social/tags/RGB" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RGB</span></a>", "<a href="https://mstdn.social/tags/RRGGBB" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RRGGBB</span></a>", "rgb(r, g, b)", "hsl(h, s, l)" and others. But they are all strings.</p>
Joana de Castro Arnaud<p><span class="h-card" translate="no"><a href="https://mastodon.social/@nixCraft" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>nixCraft</span></a></span> Technically right: In RGB color code, <a href="https://mathstodon.xyz/tags/rrggbb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rrggbb</span></a>, "green" is between "red" and "blue".</p><p>The layperson's common sense answer, though, should be a color like "violet".</p>
?Syntax Error<p><a href="https://tilde.zone/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> plebe question: Am I missing something, or are there no convenience functions in the <a href="https://tilde.zone/tags/palette" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>palette</span></a> crate for reading/writing colors from '<a href="https://tilde.zone/tags/rrggbb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rrggbb</span></a>' hex strings?</p>
ĸurth<p><span class="h-card"><a href="https://infosec.exchange/@itisiboller" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>itisiboller</span></a></span> <span class="h-card"><a href="https://helvede.net/@holsta" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>holsta</span></a></span> I don't know if this works everywhere, compatiblity-wise, but at least in xterm with TERM=xterm-256color those colors can be put in <a href="https://social.tchncs.de/tags/rrggbb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rrggbb</span></a>-web-notation in tmux. makes it possible to define very subtle dimming-backgrounds</p>
... (FKA Gergely Nagy 🐁)<p><span class="h-card"><a href="https://bikeshed.vibber.net/@brion" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>brion</span></a></span> It does, just not via the GUI:</p><pre><code>gsettings set org.gnome.desktop.background picture-uri none<br>gsettings set org.gnome.destkop.background primary-color '<a href="https://trunk.mad-scientist.club/tags/rrggbb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rrggbb</span></a>'<br></code></pre><p>Probably less hassle than creating a suitable colored image and using that, but not particularly well documented.</p>
lothar<p><span class="h-card"><a href="https://social.tchncs.de/@cybercow" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>cybercow</span></a></span><br>Asking as a non-vendor-locked-in layman: Isn't a color just something like <a href="https://social.tchncs.de/tags/rrggbb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rrggbb</span></a> or cmyk(0.0, 0.95, 1, 0.1)? Can't you just export/save/extract this information and then happily live on based on open standards?<br> :blobcatthink: <br><span class="h-card"><a href="https://tiny.tilde.website/@grendel84" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>grendel84</span></a></span> <span class="h-card"><a href="https://bananachips.club/@nev" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>nev</span></a></span></p>
Al Gore :YeeHaw:<p>Imagine not knowing that html color codes are <a href="https://blobturtle.club/tags/rrggbb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rrggbb</span></a></p>
🍂clazy keeps telling me that the string constructor for QColor is "slow" and I should use the integer constructor, so I got annoyed enough to translate <a href="https://sdfn-01.ninjawedding.org/tags/rrggbb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rrggbb</span></a> to integers at compile-time <a href="https://gcc.godbolt.org/z/mzW45n" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">gcc.godbolt.org/z/mzW45n</span><span class="invisible"></span></a><br><br>this is far harder than it should be. i'm still miffed that there's no way to have constexpr function arguments