+ 2
How to draw resistor and calculate resistance based on color coding ?
Based on color input calculate resistance and draw resistor using ohms law
5 odpowiedzi
+ 5
Can you write a more understandable question? So that people can understand you and help you. :)
+ 2
Here you go, a resistor with code code in CSS only.
https://code.sololearn.com/Wzw1S9L4uawg/?ref=app
@Pundarikak, Your turn now, to make it interactive using Javascript please.
+ 2
calvin@ resistor color code using js
https://code.sololearn.com/W4rGaxPzV32d/?ref=app
+ 2
@Pundarjkakshasatma well done
0
It's a simple sum and multiplication.
Just give each color a code like red='r' or something like it and then parse the input and operate.
The values of each color can be checked on the internet.
Please do a bit of research or try it on your own before posting.