pikmojicon

Documentation
Login

Documentation

Up one directory

Pikmoji: warnings

Tap any pikchr to see its source code.

exclamation-01

# By Andreas Kupries: https://pikchr.org/home/forumpost/10e8fbbf2d
line thick thick fill yellow from (0,0) go 1 heading 90 go 1 heading 330 close
box at last fill black wid 0.09 ht 0.4
circle fill black rad 0.06 with .n at 0.05 below last .s

exclamation-02

# Adaptated from a pikchr by Andreas Kupries: https://pikchr.org/home/forumpost/10e8fbbf2d
line color green dotted thick thick fill yellow from (0,0) go 1 heading 90 go 1 heading 330 close
box thick thick at last fill red wid 0.09 ht 0.4
circle thick thick fill red rad 0.05 with .n at 0.05 below last .s

nuclear-warning

  // NUCLEAR WARNING

     $segAngle   = 60; // 360 / 6 segments
     $startAngle = 30; // sign has segments at 30 deg offset

     dot color white; move right 2; // margin

CP:  dot;

     $a = $startAngle;
     $r = 1;

define segment {
     move to CP;
     line go $r heading $a then go $r heading $a+($segAngle*2) then go 1 heading $a+($segAngle*4) then close fill $1;
     $a += $segAngle;
}

define rim {
     circle at CP radius $r thick thick color $1;
     $r -= 0.025;
}

     // Draw segments in alternating colours
     segment(black);
     segment(orange);
     segment(black);
     segment(orange);
     segment(black);
     segment(orange);

     // Draw outer rim
     rim(black);
     rim(black);
     rim(orange);
     rim(orange);
     rim(orange);
     rim(orange);
     rim(orange);

     // Go small radius to draw inner rim
     $r = 0.25;
     rim(orange);
     rim(orange);
     rim(orange);
     rim(orange);

     // And finally inner-most circle
     circle at CP radius 0.175 fill black;