forked from bayramyoldas/Magnum-s-Aegisub-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrainbow_v2.ass
30 lines (27 loc) · 1.87 KB
/
rainbow_v2.ass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 1280
PlayResY: 720
ScaledBorderAndShadow: yes
Video Aspect Ratio: 0
Video Zoom: 6
[Aegisub Project Garbage]
Last Style Storage: Default
Video File: ?dummy:23.976000:400000:1280:720:189:189:189:
Video AR Value: 1.777778
Video Zoom Percent: 0.625000
Active Line: 1
Video Position: 3443
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Rainbow,Arial,40,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,0,1,5,10,10,10,1
Style: _rainbow,Arial,50,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,2,2,5,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Comment: 0,0:00:00.00,0:00:00.00,Rainbow,by Magnum357,0,0,0,code line,rbi = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} rbn = _G.unicode.len(orgline.text_stripped:gsub(" ","")) function rainbow(id, var1, var2, sat, cont) if sat > 1 then sat = 1 end if sat < 0.1 then sat = 0.1 end if cont > 1 then cont = 1 end if cont < 0.5 then cont = 0.5 end rbi[id] = rbi[id] + 1 return _G.ass_color(_G.HSV_to_RGB((360/255)*math.floor(var1+(((var2-var1)/rbn)*rbi[1])),sat,cont)) end
Comment: 0,0:00:00.00,0:00:00.00,Rainbow,,0,0,0,template char noblank,!retime("line",0,0)!{\pos($scenter,$smiddle)\an5\c!rainbow(1,0,220,1,1)!\3c&H000000&}
Dialogue: 0,0:02:23.60,0:02:29.72,Rainbow,,0,0,0,,{\k19}Ko{\k26}ko {\k28}wa {\k29}u{\k19}ta{\k58}ge {\k20}ha{\k21}ga{\k19}ne {\k19}no {\k21}o{\k30}ri {\k22}so{\k25}no {\k14}da{\k26}n{\k20}to{\k19}u{\k21}da{\k19}i {\k39}de {\k19}mi{\k19}o{\k13}ro{\k27}shi{\k20}te