intro rasta

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2025-10-16 17:10:52 +02:00
parent 679076fc63
commit 23440a4b3c
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
8 changed files with 1374 additions and 86 deletions

View file

@ -1,6 +1,8 @@
#import "sns_polylux_template.typ": *
#import "figures.typ": figures, get_figure
#import "../lib.typ": pb1-text, pb2-text, pb3-text
#let pirat-color = (
black: rgb("#000000"),
white: rgb("#FFFFFF"),
@ -17,6 +19,12 @@ rgb("#E69426"),
pirat-color.red,
)
#let highlight-block = block.with(
fill: pirat-color.blue,
width: 100%,
inset: 8pt,
radius: 4pt,
)
#let colortest = [
#for th in (
@ -30,17 +38,29 @@ pirat-color.red,
}
]
#let ghost(img, dx: 0pt, dy: 0pt, height: 100pt, ..args,) = context {
#let ghost(
img, x: 0pt,
y: 0pt,
mirror: false,
rot: 0deg,
height: 100pt
) = context {
let img = image(img, height: height)
if mirror {
img = scale(x: -100%, img)
}
if rot != 0deg {
img = rotate(rot, img)
}
let s = measure(img)
let hx = s.width / 2
let hy = s.height / 2
place(
bottom + left,
dx: dx - hx,
dy: -dy + hy,
..args,
dx: x - hx,
dy: -y + hy,
img
)
}