From b7d678932c714aa1a4712a162974d7d610fc37b9 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Mon, 25 Feb 2019 16:34:50 -0500 Subject: Adds resistor element --- circuit.pic | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/circuit.pic b/circuit.pic index b54c8f5..3edde93 100644 --- a/circuit.pic +++ b/circuit.pic @@ -71,3 +71,25 @@ begin end_ } cap_len = .05 + padding *2 + +define res { +begin +#LEFT + line up .05 right .03 + line down .1 right .03 + + line up .1 right .03 + line down .05 right .015 +#TEXT + move down text_down "$1"; move up text_down + move up text_up "$2"; move down text_up +#RIGHT + line down .05 right .015 + + line up .1 right .03 + line down .1 right .03 + + line up .05 right .03 +end_ +} +res_len = (0.03 * 7) + padding *2 -- cgit v1.1