https://github.com/ad-si/svgtalk
SVG generator implemented in GNU Smalltalk
https://github.com/ad-si/svgtalk
gnu-smalltalk smalltalk svg
Last synced: 7 months ago
JSON representation
SVG generator implemented in GNU Smalltalk
- Host: GitHub
- URL: https://github.com/ad-si/svgtalk
- Owner: ad-si
- Created: 2019-03-13T22:17:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-24T15:00:03.000Z (over 6 years ago)
- Last Synced: 2025-02-09T12:21:07.044Z (9 months ago)
- Topics: gnu-smalltalk, smalltalk, svg
- Language: Smalltalk
- Homepage: https://ad-si.github.io/svgtalk/
- Size: 33.2 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# SvgTalk
SVG generator implemented in [GNU Smalltalk].
Only contains a few primitives yet.
Merge requests to support more elements are very welcome.
Check out the documentation at https://ad-si.github.io/svgtalk/.
Attention: Must be run with [GNU Smalltalk] version [3.2.91].
## Usage
Build example graphic:
```sh
gst source/*.st graphic.st > graphic.svg
```

Register the package:
```sh
gst-package ./package.xml
```
Run its tests and load package into main image:
```sh
gst-load -t SvgTalk
```
Start repl and create objects:
```sh
gst
st> SvgRect new origin: 1@2 extent: 30@40.
```
For more detailed usage scenarios check out the [./tests] directory.
## Run Tests
```sh
gst-package --test ./package.xml
```
## Build Documentation
```sh
make docs
```
[GNU Smalltalk]: http://smalltalk.gnu.org
[3.2.91]: http://smalltalk.gnu.org/news/gnu-smalltalk-3-2-91
## TODO
- [ ] Implement `#asString` in terms of `#printOn`
(https://stackoverflow.com/questions/55322402)