letgoogle_fonts=reflect(false,label="Google font demo")letsans=google_fonts?Font(["Noto Sans JP","sans-serif"]):Font(["sans-serif"])letgreeting=reflect("Hello World",label="Greeting")lettitle=<Textfont={sans}font_size={72pt}font_weight={650}fill="light1">{greeting}</Text>letseed=51fnlaunch_position(rng:Random):List<Percent,2>{letside=rng.choose(0,[-1,1])letx=rng.integer(1,min=30,max=55)*1%letoffscreen_y=120%return[side*x,offscreen_y]}letblue_rng=Random(seed)letorange_rng=Random(seed+1)letpaper_rng=Random(seed+2)letgreen_rng=Random(seed+3)leteggshell_rng=Random(seed+4)letblue_start=launch_position(blue_rng)letorange_start=launch_position(orange_rng)letpaper_start=launch_position(paper_rng)letgreen_start=launch_position(green_rng)leteggshell_start=launch_position(eggshell_rng)letglass=Material.glass(blur=4pt,refraction=14pt,tint=Color("blue1").alpha(32%))letpaper=Material.paper(color=Color("light2"),grain=0.7)leteggshell=Material.eggshell(color=Color("purple1"))letmarble=Material.marble(color=Color("green1"),vein=Color("green5"),contrast=0.65,scale=0.7)lethatches=Material.hatches(color=Color("orange5").alpha(80%))letrest_radius=40ptmuttonal_radius=rest_radiusletblue=<Boxposition={blue_start}w-126h-126rounded-32corner_style="continuous"material={glass}x_align={Align.Center}y_align={Align.Center}/>letorange=<Boxposition={orange_start}w-150h-84radius={tonal_radius}fill="orange1"material={hatches}rotation={-24deg}x_align={Align.Center}y_align={Align.Center}/>letsheet=<Boxposition={paper_start}w-114h-66rounded-2material={paper}rotation={24deg}x_align={Align.Center}y_align={Align.Center}/>letgreen=<Boxposition={green_start}w-96h-96rounded-fullmaterial={marble}x_align={Align.Center}y_align={Align.Center}/>letpainted=<Boxposition={eggshell_start}w-92h-68rounded-10material={eggshell}x_align={Align.Center}y_align={Align.Center}/>letshapes=[painted,orange,sheet,green]shapes.fade_out(duration=0s)# Draw the lens above the shapes and keep the title above the lens.blue.fade_out(duration=0s)title.write(duration=800ms)wait(550ms)title.edit("Hello Ebi!",animation="type",duration=550ms)wait(100ms)ifgoogle_fonts{letfonts=[Font(["Lobster","sans-serif"]),Font(["Playfair Display","serif"]),Font(["Bricolage Grotesque","sans-serif"]),Font(["Rubik","sans-serif"])]forfontinfonts{title.edit(font=font)wait(100ms)}title.edit(font=sans)}else{wait(400ms)}wait(80ms)letlongest_flight=880msletstagger=80msfntoss(shape:Element,start:List<Percent,2>,rng:Random,delay:Duration):Animation{letflight=rng.integer(3,min=720,max=longest_flight/1ms)*1msletend_x=-start[0]*rng.integer(4,min=7,max=11)/10letapex=rng.number(5,min=-32%,max=-15%)letturn=rng.number(6,min=-100deg,max=100deg)# Short time handles leave more of the flight near the apex.letdistance=end_x-start[0]lethandle_time=flight/16letlift=(apex-start[1])*4/3letpath=Curve(keys=[Keyframe(time=0s,value=start,tangents="manual",handle_out={time=handle_time,value=[distance/4,lift]}),Keyframe(time=flight,value=[end_x,start[1]],tangents="manual",handle_in={time=-handle_time,value=[-distance/8,lift]})])return<Animationoffset={delay}>{shape.fade_in(duration=0s)}{shape.move_to(path)}{shape.rotate_to(turn,duration=flight,ease="linear")}<Animationoffset={flight}>{shape.fade_out(duration=0s)}</Animation></Animation>}<Animationduration={longest_flight+3*stagger}>{toss(painted,eggshell_start,eggshell_rng,0ms)}{toss(orange,orange_start,orange_rng,stagger)}{toss(sheet,paper_start,paper_rng,2*stagger)}{toss(green,green_start,green_rng,3*stagger)}{toss(blue,blue_start,blue_rng,2*stagger)}<Animationoffset={stagger}flow="sequence">{animate(tonal_radius,to=12pt,duration=230ms)}{animate(tonal_radius,to=rest_radius,duration=430ms)}</Animation></Animation>wait(290ms)title.uncreate(duration=700ms)wait(200ms)
Inputs
Change the text in title.edit("Hello Ebi!", ...) to try a different greeting. Enable Google font demo to download those fonts and see the greeting cycle through them. Save the source as hello.ebi and drag it onto a Shrimply video track, or render it from the terminal.
Change seed to try different tosses. The random source gives each shape repeatable directions, heights, and spins.
The blue lens passes over the shapes while the title stays sharp above it.
Change the alpha of its Adwaita blue tint to adjust how much of the artwork
shows through. The orange shape uses Material.hatches for fine overlapping
ink strokes and animates its corner radius.
The light sheet uses Material.paper for subtle fibers. The purple shape
uses Material.eggshell for a fine, pebbled finish, and the green circle
uses Material.marble for soft mineral veins.
Surface controls and more examples
shrimply ebi check hello.ebi
shrimply ebi video hello.ebi --output hello.mp4
Change Greeting in the playground or in Shrimply's inspector to set the opening title.