Resistor color code by brx

#!perl -pl
s/k/E3/,s/M/E6/,($_*=100).=(Silver,Gold,@r=(Black,Brown,Red,Orange,Yellow,Green,Blue,Violet,Grey,White))[s/(?<=..)0//g],s/\d/$r[$&]-/g

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page