Skip to content

Commit 78db30f

Browse files
committed
update runal doc
1 parent f797d61 commit 78db30f

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

content/runal.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ It works similarly as [processing](https://processing.org/) or [p5js](https://p5
2828
- **Simple primitives**: provides a set of simple primitives for 2D shapes, trigonometry, randomization, colors...
2929
- **Multi-language**: it can be programmed with Javascript, or used as a Go library
3030
- **Fast feedback loop**: reloads your sketch each time you modify it
31-
- **Export**: save your canvas to png images of gif animations
31+
- **Export**: save your canvas to png images, gif animations or mp4 videos
3232
- **Cross-platform**: runs on Linux, macOS, and Windows
3333

3434

@@ -438,14 +438,19 @@ Scales the drawing context by the given factor.
438438

439439
<hr class="separator"/>
440440

441-
### Image
441+
### Export
442442

443443
#### c.saveCanvasToPNG(filename)
444444
Exports the current canvas to an image file (png).
445445

446446
#### c.saveCanvasToGIF(filename, duration)
447447
Exports the current canvas to an animated gif file for a given duration (in seconds).
448448

449+
#### c.saveCanvasToPNG(filename, duration) <sub>since v0.4.0</sub>
450+
> **This feature needs **[ffmpeg](https://ffmpeg.org/download.html)** installed**
451+
452+
Exports the current canvas to a mp4 (h264) video file for a given duration (in seconds).
453+
449454
#### c.savedCanvasFont(path)
450455
Sets a custom font (tff) file used for rendering text characters in exported images generated via _SaveCanvasTo...()_ methods.
451456

sass/main.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,15 @@ article {
338338
color: #d5009f;
339339
}
340340

341-
h4 + p {
341+
h4 sub {
342+
color: #333333;
343+
margin-left: 12px;
344+
vertical-align: baseline;
345+
font-style: italic;
346+
}
347+
348+
h4 + p,
349+
h4 + blockquote + p {
342350
font-style: italic;
343351
}
344352
}

0 commit comments

Comments
 (0)