Created
March 22, 2026 16:20
-
-
Save cormullion/ba7b1638742403da41d67d3fd2063d7d to your computer and use it in GitHub Desktop.
jb logo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Luxor | |
| function heart(; scalefactor = 1, action = :none) | |
| @layer begin | |
| scale(scalefactor) | |
| translate(-300, -310) | |
| move(300, 530) | |
| curve(306, 530, 314, 525, 323, 519) | |
| curve(335, 511, 541, 380, 540, 246) | |
| curve(539, 141, 450, 100, 403, 100) | |
| curve(354, 100, 322, 119, 300, 135) | |
| curve(282, 119, 247, 100, 198, 100) | |
| curve(151, 100, 61, 141, 60, 246) | |
| curve(60, 380, 265, 511, 277, 519) | |
| curve(285, 524, 293, 530, 300, 530) | |
| end | |
| return do_action(action) | |
| end | |
| function jbody(; scalefactor = 1, action = :none) | |
| return @layer begin | |
| translate(0, 130) | |
| scale(scalefactor) | |
| translate(-320, -350) | |
| move(282, 167) | |
| line(360, 167) | |
| curve(360, 233, 360, 356, 360, 371) | |
| curve(360, 403, 342, 432, 313, 433) | |
| curve(284, 434, 253, 419, 240, 368) | |
| curve(265, 370, 281, 370, 281, 350) | |
| closepath() | |
| do_action(action) | |
| end | |
| end | |
| Drawing(600, 600, "/tmp/jblogo.svg") | |
| #background("white") | |
| origin() | |
| setblend( | |
| blend( | |
| Point(0, -60), 0, | |
| O, 240, | |
| Luxor.Colors.HSB(227, 0.6, 0.3), #inner | |
| Luxor.Colors.HSB(227, 0.6, 0.8) # outer | |
| ) | |
| ) | |
| heart(; scalefactor = 1.1, action = :fill) | |
| sethue("white") | |
| jbody(; scalefactor = 0.6, action = :fill) | |
| @layer begin | |
| translate(0, -80) | |
| juliacircles(50) | |
| end | |
| finish() | |
| preview() |
Author
cormullion
commented
Mar 22, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment