Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jl2/cl-blend2d
https://github.com/jl2/cl-blend2d
binding blend2d graphics lisp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jl2/cl-blend2d
- Owner: jl2
- License: isc
- Created: 2019-04-09T04:39:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-10T00:23:02.000Z (about 1 year ago)
- Last Synced: 2023-12-10T01:34:02.699Z (about 1 year ago)
- Topics: binding, blend2d, graphics, lisp
- Language: Python
- Size: 815 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blend2d
### _Jeremiah LaRocco _
Common Lisp bindings to [Blend2D](https://github.com/blend2d/blend2d).
## Getting Started
These bindings will not be added to QuickLisp until after Blend2D has an official 1.0 release. Until then, installation is manual, and it's recommended to build against a source version of Blend2D.Fortunately, [cl-autowrap](https://github.com/jl2/cl-autowrap) makes it easy to build the bindings from the source code.
### Get and Build Blend2D
First, fetch the [code](https://github.com/blend2d/blend2d) and follow the [build instructions](https://blend2d.com/download.html). I've had good luck using the first shell script under "Building From Source". To simplify later steps, you can install the library using "sudo make install", but it's not strictly necessary to follow these instructions.### Get Blend2D Bindings
In your local Lisp project directory, clone the cl-blend2d library:```Bash
git clone [email protected]:jl2/cl-blend2d.git
```### Load Blend2D bindings in the REPL
In Slime:```Common Lisp
(ql:quickload :blend2d.examples)
```The quickload will take several seconds the first time, as autwrap needs to run c2ffi, parse the .spec files, and generate code. Subsequent loads should be much faster.
Next, run one of the getting started examples:
```Common Lisp
(blend2d.examples:getting-started-1 "/home/jeremiah/blend2d.example.1.bmp")
```This should produce a file blend2d.example.1.bmp
## License
ISCCopyright (c) 2023 Jeremiah LaRocco