-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sierpinski-carpet-animation.scm.in: Update commentaries
* examples/sierpinski-carpet-animation.scm.in: Update commentaries.
- Loading branch information
1 parent
e2a4013
commit f2a8d67
Showing
1 changed file
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,40 @@ | |
-L modules -e main -s | ||
!# | ||
|
||
;;; sierpinski-carpet-animation.scm.in -- Guile-PNG fractal drawing example. | ||
|
||
;; Copyright (C) 2022 Artyom V. Poptsov <[email protected]> | ||
;; | ||
;; This program is free software: you can redistribute it and/or modify | ||
;; it under the terms of the GNU General Public License as published by | ||
;; the Free Software Foundation, either version 3 of the License, or | ||
;; (at your option) any later version. | ||
;; | ||
;; The program is distributed in the hope that it will be useful, | ||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
;; GNU General Public License for more details. | ||
;; | ||
;; You should have received a copy of the GNU General Public License | ||
;; along with the program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
;;; Commentary: | ||
|
||
;; A Scheme program that uses Guile-PNG to create a sequence of images that | ||
;; can be assembled into a "Sierpinski Carpet Zoom" animation. | ||
;; | ||
;; Usage: | ||
;; ./sierpinski-carpet-animation.scm <image-size> <output-directory> | ||
;; | ||
;; Usage example: | ||
;; ./sierpinski-carpet-animation.scm 500 out | ||
;; cd <output-directory> | ||
;; cd out | ||
;; convert -delay 1 -loop 0 *.png sierpinski-carpet-animation.gif | ||
|
||
|
||
;;; Code: | ||
|
||
(use-modules (oop goops) | ||
(png) | ||
(png image) | ||
|
@@ -111,4 +137,4 @@ | |
orig-size | ||
10)))) | ||
|
||
;;; sierpinski-triangle.scm.in ends here. | ||
;;; sierpinski-triangle-animation.scm.in ends here. |