New course! Every coder should learn Generative AI!
+ 1

# Calculating color code ........

Hii Friends !!!! Please Just Tell Me That How To Calculate The Code Of Color Like -->> For Color Red , Code Is #FF0000 And rgb(255,0,0) Like That ...... Please Tell Me ....... ๐๐๐๐๐๐๐๐๐

7th Apr 2021, 8:08 AM
Tirthen Patel
+ 5
we can not give you a complete code, but see the hints . when you are going to create a color code as hex value, you can do like this: โช๏ธassuming you have integer values like: red= 100, green= 200, blue= 233 โช๏ธeach hexcode has to be created individually โช๏ธthe way how to do this can be different in various languages. let us take python to do it. โช๏ธthe result should be: 100 -> 64, 200 -> c8, 233 -> e9. together with the leading # sign it is #64c8e9 โช๏ธto get the 3 individual parts you can use a formatting feature like f-string: โช๏ธredH = f"{red:02x}", the string redH now contains "64", do the same with green and blue. โช๏ธput all strings together and put a leading # sign in front of it the result is now: #64c8e9 happy coding ad good success!
7th Apr 2021, 10:58 AM
Lothar
+ 4
First show ur attempt
7th Apr 2021, 8:10 AM
Kวrษจsษฆmว โฅ
+ 3
Aerith , may be you are looking for a tool so that you can mix colors visually or by numbers. it is working with the HSL color modell that makes it very easy to create a color ( if you understand how this model works) https://www.hexcolortool.com/#ea2ac0,0.77
9th Apr 2021, 2:24 PM
Lothar
+ 1
rgb(255, 0, 0)
7th Apr 2021, 8:09 AM
Alexander Sokolov
0
Thanks Friends For Your Best Response But I Know That Calculations . I Want To Know That If I Want To Make Pink Color Or Other Colors Then How Can I Get Its Code Or How Can I Make The Color Code ...... If You Know Then Please Tell Me ...... If Don't Then Thanks For The Answer ๐๐๐๐๐๐๐๐๐๐๐
7th Apr 2021, 1:39 PM
Tirthen Patel
0
And Special Thanks To -->> Alexander Sokolov -->> โจkรฅrรฏยงhmรฅโจ -->> Lothar To Answering Me
7th Apr 2021, 1:44 PM
Tirthen Patel
7th Apr 2021, 1:47 PM
Tirthen Patel