Skip to content

Instantly share code, notes, and snippets.

View santhoshtr's full-sized avatar
👷‍♂️
Work in progress

Santhosh Thottingal santhoshtr

👷‍♂️
Work in progress
View GitHub Profile
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
Untitled Metapost Sample #metapost-sandbox
beginfig(0);
z0 = origin;
z1 = right rotated 50 scaled 6cm;
path p[];
p1 = fullcircle scaled 10cm shifted z1;
p2 = z0--z1;
xpart z3 = xpart z1;
ypart z3 = ypart z0;
p3 = z0--z3;
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
sa-ksrtc-artist #metapost-sandbox
beginfig(0);
width:=40;
rotation:=40;
color glyphcolor; glyphcolor := (1, 1,1);
pen calligraphicpen ;
calligraphicpen := makepen ((0, 0)--(width,0 ) rotated rotation) ;
z0 = (-50, 0);
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
Triangle Transformations #metapost-sandbox
beginfig(0);
path p;
pair A,B,C;
transform T;
u:=10cm;
A=u*dir(-30);
B=u*dir(90);
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
Rotating squares #metapost-sandbox
beginfig(0)
for i=0 upto 100:
fill unitsquare
scaled ((100-i)*0.1mm)
rotated 31i
withcolor (0.01i)[green,blue];
endfor;
endfig;
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
Nupuram style ത but reverse contrast #metapost-sandbox
input plain_ex;
input mpcolornames;
beginfig(0);
path paths[], strokes[];
thick:= 50;
thin:= 0.75;
vardef pennib = fix_nib(thick, thick*thin, 0) enddef;
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
Nupuram style അ but thin horizontal and thick vertical strokes #metapost-sandbox
input plain_ex;
input mpcolornames;
beginfig(0);
path paths[], strokes[];
thick:= 60;
thin:= 0.75;
xthick:=1.5;
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
Nibs - Elliptical - properties #metapost-sandbox
input plain_ex;
input mpcolornames;
beginfig(0);
p:=0;
thick:= 100;
thin:= thick*0.5;
rotation:=30;
vardef elliptical_nib = fix_nib(thick, thin, rotation) enddef;
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
അത്ഭുതവാനരൻ - പൂമ്പാറ്റ - ത #metapost-sandbox
input plain_ex;
input mpcolornames;
beginfig(0);
p:=0;
thick:= 20;
thin:= thick*0.5;
vardef thick_nib = fix_nib(thick, thin, 0) enddef;
path paths[], strokes[];
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
Condensed Display സ #metapost-sandbox
input plain_ex;
input mpcolornames;
beginfig(0);
p:=0;
thick:= 20;
thin:= thick*0.5;
vardef thick_nib = fix_nib(thick, 0, 0) enddef;
vardef thin_nib = fix_nib(0, thin, 0) enddef;
path paths[], strokes[];
@santhoshtr
santhoshtr / main.mp
Created February 13, 2026 10:03
Display style സ #metapost-sandbox
input plain_ex;
input mpcolornames;
beginfig(0);
p:=0;
thick:= 20;
thin:= thick*0.5;
vardef thick_nib = fix_nib(thick, 0, 0) enddef;
vardef thin_nib = fix_nib(0, thin, 0) enddef;
path paths[], strokes[];