Basic Examples 
(4)
 

Generate a list of colors corresponding to a resistor color code for a given resistance:
In[345]:=
[◼]
ResistorColorCode
[Quantity[1.34,"Ohms"],"ColorList"]
Out[345]=

,
,
,

Display a graphical representation of the resistor:
In[346]:=
[◼]
ResistorColorCode
[Quantity[1.34,"Ohms"],"Graphics"]
Out[346]=
———
Generate a pair of images when there are two equivalent color code representations:
In[347]:=
[◼]
ResistorColorCode
[Quantity[5000,"Ohms"],"Graphics"]
Out[347]=
Generate a pair of color lists instead of graphics:
In[348]:=
[◼]
ResistorColorCode
[Quantity[5000,"Ohms"],"ColorList"]
Out[348]=

,
,
,
,
,
,

———
The final stripe represents the tolerance value:
In[349]:=
[◼]
ResistorColorCode
[<|"Resistance"Quantity[5000,"Ohms"],"Tolerance"Quantity[1,"Percent"]|>,"Graphics"]
Out[349]=
In[353]:=
[◼]
ResistorColorCode
["Resistance"
11600
Ω
,"Tolerance"
10
%
]
Out[353]=

,
,
,
,

———
Generate color lists including an entry for the tolerance:
In[350]:=
[◼]
ResistorColorCode
[<|"Resistance"Quantity[5000,"Ohms"],"Tolerance"Quantity[1,"Percent"]|>,"ColorList"]
Out[350]=

,
,
,
,
,
,
,
,


Options 
(1)
 


Properties and Relations 
(1)
 
