diff --git a/presets/album.rin b/presets/album.rin new file mode 100644 index 0000000..6b3f8d2 --- /dev/null +++ b/presets/album.rin @@ -0,0 +1,45 @@ +frame.resize 800x800 +type:size 13 +type:font DIN Medium +type:color #ffffff + +~ PART 1 +layer.fill #b3b3b3 +source.load /duomic_1.jpg x700 -90,100 +type.write 400,67 "OPAL INQUISITORS" + +~ PART 2 +~ layer.fill #a6a6a6 +~ source.load /duomic_2.jpg x700 -65,100 +~ type.write 400,67 "PORTALION" + +~ PART 3 +~ layer.fill #b3b3b3 +~ source.load /duomic_3.jpg x700 -75,100 +~ type.write 400,67 "DEI DAIN" + +source.load /nataniev.small.white.svg x40 50,50 +type.write 250,67 "ALICEFFEKT" +type.write 110,67 "DUOMIC" +type:font DIN +type:size 10 + +~ PART 1 +type.write 250,82 "2015.09" +type.write 400,82 "4 TRACKS" +type.write 110,83 "PART 1" + +~ PART 2 +~ type.write 250,82 "2016.10" +~ type.write 400,82 "4 TRACKS" +~ type.write 110,83 "PART 2" + +~ PART 3 +~ type.write 250,82 "2013.06" +~ type.write 400,82 "10 TRACKS" +~ type.write 110,83 "PART 3" + +~ Save +source:format jpg +source:quality 1 +source.save \ No newline at end of file diff --git a/presets/album_duomic.rin b/presets/album_duomic.rin new file mode 100644 index 0000000..0613fb9 --- /dev/null +++ b/presets/album_duomic.rin @@ -0,0 +1,45 @@ +frame.resize 800x800 +type:size 13 +type:font DIN Medium +type:color #ffffff + +~ PART 1 +~ layer.fill #b3b3b3 +~ source.load /duomic_1.jpg x700 -90,100 +~ type.write 400,67 "OPAL INQUISITORS" + +~ PART 2 +~ layer.fill #a6a6a6 +~ source.load /duomic_2.jpg x700 -65,100 +~ type.write 400,67 "PORTALION" + +~ PART 3 +layer.fill #b3b3b3 +source.load /duomic_3.jpg x700 -75,100 +type.write 400,67 "DEI DAIN" + +source.load /nataniev.small.white.svg x40 50,50 +type.write 250,67 "ALICEFFEKT" +type.write 110,67 "DUOMIC" +type:font DIN +type:size 10 + +~ PART 1 +~ type.write 250,82 "2015.09" +~ type.write 400,82 "4 TRACKS" +~ type.write 110,83 "PART 1" + +~ PART 2 +~ type.write 250,82 "2016.10" +~ type.write 400,82 "4 TRACKS" +~ type.write 110,83 "PART 2" + +~ PART 3 +type.write 250,82 "2013.06" +type.write 400,82 "10 TRACKS" +type.write 110,83 "PART 3" + +~ Save +source:format jpg +source:quality 1 +source.save \ No newline at end of file diff --git a/presets/album_laeisthic.rin b/presets/album_laeisthic.rin new file mode 100644 index 0000000..1418b9a --- /dev/null +++ b/presets/album_laeisthic.rin @@ -0,0 +1,42 @@ +frame.resize 800x800 +type:size 13 +type:font DIN Medium +type:color #000 + +~ PART 1 +~ source.load /laeisth_1.jpg x800 -250,0 +~ type.write 400,67 "CHILDREN OF BRAMBLE" + +~ PART 2 +source.load /laeisth_2.jpg x800 -250,0 +type.write 400,67 "KNOWN MAGYE" + +~ PART 3 +~ source.load /laeisth_3.jpg x800 -250,0 +~ type.write 400,67 "EXTENDED SLEEP" + +source.load /nataniev.small.black.svg x40 50,50 +type.write 250,67 "ALICEFFEKT" +type.write 110,67 "LAEISTHIC" +type:font DIN +type:size 10 + +~ PART 1 +~ type.write 250,82 "2012.04" +~ type.write 400,82 "4 TRACKS" +~ type.write 110,83 "PART 1" + +~ PART 2 +type.write 250,82 "2014.03" +type.write 400,82 "6 TRACKS" +type.write 110,83 "PART 2" + +~ PART 3 +~ type.write 250,82 "2015.05" +~ type.write 400,82 "4 TRACKS" +~ type.write 110,83 "PART 3" + +~ Save +source:format jpg +source:quality 1 +source.save \ No newline at end of file diff --git a/presets/album_malice.rin b/presets/album_malice.rin new file mode 100644 index 0000000..3dd072c --- /dev/null +++ b/presets/album_malice.rin @@ -0,0 +1,25 @@ +frame.resize 800x800 +type:size 13 +type:font DIN Medium +type:color #ffffff + +~ PART 1 +layer.fill #72dec2 +source.load /malice_1.jpg x800 -90,0 +type.write 400,67 "COLLECTED WORKS" + +source.load /nataniev.small.white.svg x40 50,50 +type.write 250,67 "害意" +type.write 110,67 "MALICE" +type:font DIN +type:size 10 + +~ PART 1 +type.write 250,82 "2016.07" +type.write 400,82 "4 TRACKS" +type.write 110,83 "2008-2015" + +~ Save +source:format jpg +source:quality 1 +source.save \ No newline at end of file diff --git a/presets/radial.rin b/presets/radial.rin new file mode 100644 index 0000000..53f726d --- /dev/null +++ b/presets/radial.rin @@ -0,0 +1,22 @@ +frame.resize 500x500 +brush:color #000000 + +~ Radial 45' +~ brush.add 250,250 45' +~ brush.add 250,250 90' +~ brush.add 250,250 135' +~ brush.add 250,250 180' +~ brush.add 250,250 225' +~ brush.add 250,250 270' +~ brush.add 250,250 315' + +~ Radial 72' +brush.add 250,250 72' +brush.add 250,250 144' +brush.add 250,250 216' +brush.add 250,250 288' + +~ Radial 90' +~ brush.add 250,250 90' +~ brush.add 250,250 180' +~ brush.add 250,250 270' \ No newline at end of file diff --git a/scripts/modules/brush.js b/scripts/modules/brush.js index 8636733..c0e7b98 100644 --- a/scripts/modules/brush.js +++ b/scripts/modules/brush.js @@ -8,7 +8,7 @@ function Brush(rune) this.add_mode(new Mode("erase","shift")); this.add_setting(new Setting("color","#000000")); this.add_setting(new Setting("size","2")); - this.add_method(new Method("add",["Position","Color","Scale"],["mirror_x","mirror_y"])); + this.add_method(new Method("add",["Position","Color","Scale","Angle"],["mirror_x","mirror_y"])); this.add_method(new Method("clear")); this.add = function(cmd, preview = false) @@ -30,6 +30,7 @@ function Brush(rune) pointer.offset = cmd.position() ? cmd.position() : new Position("0,0"); pointer.color = cmd.color() ? cmd.color().hex : this.settings["color"].value; pointer.scale = cmd.value() ? cmd.value().float : 1; + pointer.angle = cmd.angle() ? cmd.angle().degrees : 0; if(mirror_x){ pointer.mirror_x = mirror_x; } if(mirror_y){ pointer.mirror_y = mirror_y; } diff --git a/scripts/modules/brush.pointer.js b/scripts/modules/brush.pointer.js index 9edb7a1..d37da5a 100644 --- a/scripts/modules/brush.pointer.js +++ b/scripts/modules/brush.pointer.js @@ -1,14 +1,14 @@ -function Pointer(offset = new Position(), color = null, scale = 1) +function Pointer(offset = new Position(), color = null, scale = 1, angle = 1) { this.offset = offset; this.color = color; this.scale = scale; + this.angle = null; this.mirror_x = null; this.mirror_y = null; this.position_prev = null; - this.angle = null; this.distance = 0; // Parameters @@ -112,7 +112,7 @@ function Pointer(offset = new Position(), color = null, scale = 1) this.position_rotation = function() { - var angle_radian = this.angle.degrees * Math.PI / 180; + var angle_radian = this.angle * Math.PI / 180; var deltaX = ronin.cursor.position.x - this.offset.x; var deltaY = ronin.cursor.position.y - this.offset.y; var t = Math.atan2(deltaY, deltaX) + angle_radian;