+ 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 ....... đđđđđđđđđ
7 Respostas
+ 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!
+ 4
First show ur attempt
+ 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
+ 1
rgb(255, 0, 0)
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
đđđđđđđđđđđ
0
And Special Thanks To
-->> Alexander Sokolov
-->> âškĂ„rï§hmĂ„âš
-->> Lothar
To Answering Me
0
I Make The Code Of HTML
https://code.sololearn.com/WZ1L28yL9RSi/?ref=app