Date: 2020-10-01 02:49 pm (UTC)
ceraphiic: (Default)
From: [personal profile] ceraphiic
You can write RGB colors in any of these formats as they're all valid:
rgb(red green blue)
rgb(red, green, blue)
rgb(red,green,blue)

If you want to adjust the transparency, add an alpha channel:
rgba(red green blue / alpha)
rgba(red, green, blue, alpha)
rgba(red,green,blue,alpha)

Just replace alpha with either a number between 0 and 1, or a percentage:
rgba(255 0 0 / .1) and rgba(255, 0, 0, 10%) are both    .
rgba(255 0 0 / .5) and rgba(255, 0, 0, 50%) are both    .
rgba(255 0 0 / 1) and rgba(255, 0, 0, 100%) are both    .

I know that's a lot more than you asked for, but there really are many different ways to write RGB colors. Just use whichever you feel most comfortable with, is my advice.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

February 2024

S M T W T F S
    123
456789 10
11121314151617
18192021222324
2526272829  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 1st, 2025 06:39 pm
Powered by Dreamwidth Studios