ff 1ˆÒÑ× 442ÐÁÔº1‹Å“OOÛ0Æï| χݚV¸ ÇK*Q©´U š¦iÇvkNÙo)ðéqšV0 4í0íä?û}žÇ6û�¯²âûzF®‹›Yß}]Ì3B'ߦ@^äãÂyrz0[RBÄþ3Àn·KvÓÄùŠ 4ØÚsè�ÄD¡¢ü„ sü„°F [ÂРÕ|Þ)ý@\EÀm1¥O?Á“h[¡ ß–ÖÈã<(׺S•±:QºuIé\ë)'Ã${¤§ ­hÅ=¸nÛ+�Z?h¹Å¸�ÁX8J�ƒV:õ8H<ûrbÕ}¢Ü«ºž3lȽ°¦îRŠ®§œ™¶&ÁË”‚‘® PZÑýJjSQ",¦ôÇ<[ýŒ`3ìæL�Æë*¥_²ty¹J¯(_ŠV3o37#³I딩ŒVï·#|kžÞ?0�LNy®ƒô¦G㺢Å×V¥³¡ÑëEtÐø×Ôˆ¨?¥!äoa¬¯6³e‘Ï7c$j8âEÝ?º\Ê×ÂëIn¼–èüãÁñXþcW†þò8$?ÞÔ RNÈ„¼IþMTpxD ö/šÁøéž¼‡‰×83ˆl–ßi~”Êa,j‚ ÆŸ¸)‹Fÿ�þDÐmfäuç‡)Yx/ùÙ … N¶&ÿØÂÕ?÷3% byrne-euclid 0.2.2 % MetaPost library that implements most of the graphical % features present in Oliver Byrne's version of Euclid's "Elements" % Copyright 2022 Sergey Slyusarev % % This program is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. % % This program is distributed in the hope that it will be useful, % but WITHOUT ANY WARRANTY; without even the implied warranty of % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the % GNU General Public License for more details. % % You should have received a copy of the GNU General Public License % along with this program. If not, see . % % Here we define some things of general interest % pi := 3.1415926; radian := 180/pi; lineWidth := 2pt; lineWidthThin := 1pt; lineWidthHair := 1/2pt; pointMarkSize := 4pt; pointLinesSize := 1/2cm; defaultScaleFactor := 1; angleSize := 1cm; angleScale := 1; globalRotation := 0; magnitudeSize := 5/18cm; magnitudeScale := 1; magnitudeGap := 3/2lineWidth; markLength := 3lineWidth; rayExtension := 1/3cm; boolean textLabels, ghostLines, autoRightAngles, omitDuplicateTextLabels, autoLabelingMode, mainPictureMode; textLabels := false; ghostLines := true; autoRightAngles := false; omitDuplicateTextLabels := false; textLabelShift := lineWidth; autoLabelingMode := false; mainPictureMode := false; boolean solidAngleMode; solidAngleMode := false; numeric dpLength[]; dpLength0 := 2lineWidth; dpLength1 := 2lineWidth; vardef sin primary x = (sind(x*radian)) enddef; vardef cos primary x = (cosd(x*radian)) enddef; vardef arcsind primary x = angle((1+-+x,x)) enddef; vardef arccosd primary x = angle((x,1+-+x)) enddef; vardef pathToString (expr p) = save outputString, endpoint, i; string outputString; if (length(p) > 0): outputString := "(" & decimal(xpart(point 0 of p)) & ", " & decimal(ypart(point 0 of p)) & ")" & ".. controls (" & decimal(xpart(postcontrol 0 of p)) & ", " & decimal(ypart(postcontrol 0 of p)) & ") and " & "(" & decimal(xpart(precontrol 1 of p)) & ", " & decimal(ypart(precontrol 1 of p)) & ")"; if (cycle p): endpoint := length(p) - 1; else: endpoint := length(p); fi; for i := 1 step 1 until endpoint: outputString := outputString & ".. (" & decimal(xpart(point i of p)) & ", " & decimal(ypart(point i of p)) & ")"; if ((i < length(p)) or (cycle p)): outputString := outputString & ".. controls (" & decimal(xpart(postcontrol i of p)) & ", " & decimal(ypart(postcontrol i of p)) & ") and " & "(" & decimal(xpart(precontrol i + 1 of p)) & ", " & decimal(ypart(precontrol i + 1 of p)) & ")"; fi; endfor; if (cycle p): outputString := outputString & " .. cycle"; fi; else: outputString := "(" & decimal(xpart(point 0 of p)) & ", " & decimal(ypart(point 0 of p)) & ")"; fi; outputString enddef; color byred, byblue, byyellow, byblack, bygrey, byredN, byblueN, byyellowN, byblackN, bygreyN, outlineColor.byredN, outlineColor.byblueN, outlineColor.byyellowN, outlineColor.byblackN, outlineColor.bygreyN, bytransparent, byDefaultAngleOptionalColor; byred := (.85,