From bedf8bbd584125d166b9b53d75e006d6fc95698e Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 16 Jun 2017 09:11:38 -1000 Subject: [PATCH] :D --- links/main.css | 2 +- presets/camilare.rin | 21 +++++++++++++++++++++ presets/default.rin | 21 ++++++++++----------- presets/marabu.rin | 23 ++++++++++------------- scripts/modules/magnet.js | 4 ++-- 5 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 presets/camilare.rin diff --git a/links/main.css b/links/main.css index 9e0186e..997b8f9 100644 --- a/links/main.css +++ b/links/main.css @@ -36,7 +36,7 @@ span.setting .value { color:#999; } span.mode { color:#999; } span.mode .name { text-decoration: underline; color:white; } -#modal { position: fixed; bottom:80px; right:20px; height:100px; background:#111; border-radius:3px; overflow:hidden; display: block} +#modal { position: fixed; bottom:80px; right:20px; height:100px; border-radius:3px; overflow:hidden; display: block} #modal.text { display: block;background: #000;width: calc(100vw - 100px);height: calc(100vh - 160px);padding: 30px;font-size: 12px;white-space: pre;column-count: 3;line-height: 20px;color:white} #modal.image img { display: block; max-height: 100%; width:inherit;} #modal.hidden { display: none } \ No newline at end of file diff --git a/presets/camilare.rin b/presets/camilare.rin new file mode 100644 index 0000000..d04a27b --- /dev/null +++ b/presets/camilare.rin @@ -0,0 +1,21 @@ +frame.resize 300x300 +layer.fill #000000 +path:line_width 28 +path:line_cap butt +magnet:color #999 +magnet.grid 15x15 4,4 +frame.select logo~ +brush:color #72dec2 +path:line_cap round +path.stroke M150,240 l0,-30 a60,-60 0 0,1 60,-60 l30,0 l0,30 l-30,0 a-30,30 0 0,0 -30,30 l0,30 l30,0 l0,-30 +path.stroke M150,60 l0,30 a-60,60 0 0,1 -60,60 l-30,0 l0,-30 l30,0 a30,-30 0 0,0 30,-30 l0,-30 l-30,0 l0,30 +path.stroke M120,240 l0,-30 a-30,-30 0 0,0 -30,-30 l-30,0 l0,30 l30,0 +path.stroke M180,60 l0,30 a30,30 0 0,0 30,30 l30,0 l0,-30 l-30,0 +path:line_cap square +path.stroke M150,75 l0,-15 M180,75 l0,-15 M150,225 l0,15 M120,225 l0,15 +path:line_cap round +path.stroke M90,210 l0,30 M210,210 l30,0 M210,90 l0,-30 M90,90 l-30,0 +path.stroke M90,240 l-30,0 M60,90 l0,-30 M210,60 l30,0 M240,210 l0,30 +path:line_cap square +path.stroke M240,225 l0,15 M75,240 l-15,0 M60,75 l0,-15 M225,60 l15,0 +magnet.clear \ No newline at end of file diff --git a/presets/default.rin b/presets/default.rin index c065faa..a8ed64e 100644 --- a/presets/default.rin +++ b/presets/default.rin @@ -1,14 +1,13 @@ frame.resize 300x300 -layer.fill #000000 -path:line_width 28 -path:line_cap butt -magnet.grid 15x15 4,4 +frame.select background +~ layer.fill #f1f1f1 +frame.select main frame.select logo -path.stroke M60,60 l60,0 a60,60 0 0,1 60,60 M240,60 l0,60 a-60,60 0 0,1 -60,60 M240,240 l-60,0 a-60,-60 0 0,1 -60,-60 M60,240 l0,-60 a60,-60 0 0,1 60,-60 M90,240 l0,-60 a30,-30 0 0,1 30,-30 M60,90 l60,0 a30,30 0 0,1 30,30 M210,60 l0,60 a-30,30 0 0,1 -30,30 M240,210 l-60,0 a-30,-30 0 0,1 -30,-30 -path.stroke M45,60 l15,0 M45,90 l15,0 M210,45 l0,15 M240,45 l0,15 M255,210 l-15,0 M255,240 l-15,0 M90,255 l0,-15 M60,255 l0,-15 -path:line_cap round -path.stroke M120,60 a60,60 0 0,1 60,60 M240,120 a-60,60 0 0,1 -60,60 M180,240 a-60,-60 0 0,1 -60,-60 M60,180 a60,-60 0 0,1 60,-60 -path.stroke M120,90 a30,30 0 0,1 30,30 M210,120 a-30,30 0 0,1 -30,30 M180,210 a-30,-30 0 0,1 -30,-30 M90,180 a30,-30 0 0,1 30,-30 -magnet.grid 1x1 4,4 +path:line_width 30 +path:line_color #000 +path.stroke M60,60 l120,0 a60,60 0 0,1 60,60 a-60,60 0 0,1 -60,60 l-120,0 M180,180 a60,60 0 0,1 60,60 +magnet.grid 15x15 4,4 +magnet.clear brush:color #72dec2 -brush:size 10 \ No newline at end of file +brush:size 10 +source.save \ No newline at end of file diff --git a/presets/marabu.rin b/presets/marabu.rin index f9da2ca..81468e4 100644 --- a/presets/marabu.rin +++ b/presets/marabu.rin @@ -1,15 +1,12 @@ frame.resize 300x300 -layer.fill #000000 -path:line_width 28 -path:line_cap butt -magnet:color #f00 -magnet.grid 15x15 4,4 +frame.select background +layer.fill #f1f1f1 +frame.select main frame.select logo -~ path.stroke M60,60 l60,0 a60,60 0 0,1 60,60 M240,60 l0,60 a-60,60 0 0,1 -60,60 M240,240 l-60,0 a-60,-60 0 0,1 -60,-60 M60,240 l0,-60 a60,-60 0 0,1 60,-60 M90,240 l0,-60 a30,-30 0 0,1 30,-30 M60,90 l60,0 a30,30 0 0,1 30,30 M210,60 l0,60 a-30,30 0 0,1 -30,30 M240,210 l-60,0 a-30,-30 0 0,1 -30,-30 -~ path.stroke M45,60 l15,0 M45,90 l15,0 M210,45 l0,15 M240,45 l0,15 M255,210 l-15,0 M255,240 l-15,0 M90,255 l0,-15 M60,255 l0,-15 -~ path:line_cap round -~ path.stroke M120,60 a60,60 0 0,1 60,60 M240,120 a-60,60 0 0,1 -60,60 M180,240 a-60,-60 0 0,1 -60,-60 M60,180 a60,-60 0 0,1 60,-60 -~ path.stroke M120,90 a30,30 0 0,1 30,30 M210,120 a-30,30 0 0,1 -30,30 M180,210 a-30,-30 0 0,1 -30,-30 M90,180 a30,-30 0 0,1 30,-30 -magnet.clear - -brush:color #72dec2 \ No newline at end of file +path:line_width 30 +path:line_color #000 +~ path.stroke M60,60 l120,0 a60,60 0 0,1 60,60 a-60,60 0 0,1 -60,60 l-120,0 M180,180 a60,60 0 0,1 60,60 +magnet.grid 15x15 4,4 +~ magnet.grid 1x1 4,4 +brush:color #72dec2 +brush:size 10 \ No newline at end of file diff --git a/scripts/modules/magnet.js b/scripts/modules/magnet.js index a0755d8..8c348ce 100644 --- a/scripts/modules/magnet.js +++ b/scripts/modules/magnet.js @@ -14,7 +14,7 @@ function Magnet(rune) { if(!cmd.rect()){ return 0, "Rect?"; } - if(!this.layer){ this.create_layer(true); } + if(!this.layer){ this.create_layer(); } this.layer.clear(); this.draw_grid(cmd.rect(),cmd.position()); @@ -78,7 +78,7 @@ function Magnet(rune) this.update_mouse = function(position) { if(this.size.width > 4 || this.size.height > 4){ - if(!this.layer){ this.create_layer(true); } + if(!this.layer){ this.create_layer(); } this.layer.clear(); this.draw_grid(this.size,this.rate); }