项目作者: avsa242
项目描述 :
Generic bitmap-oriented graphics library for spin
高级语言: Propeller Spin
项目地址: git://github.com/avsa242/libgfxbitmap-spin.git
libgfxbitmap-spin
This is a P8X32A/Propeller, P2X8C4M64P/Propeller 2 library for generic bitmap-oriented drawing routines.
Salient Features
- Line, Circle (not ellipse), Box, Plot primitives
- Text rendering (uses terminal.common.spin[2]h to provide str(), hex(), bin(), printf(), etc)
- Text: 0 or 90 degree-rotated font bitmaps, up to 32px wide glyphs
- Text: Character cell-level or pixel-level positioning (build-time)
- Text: Internal or custom user-provided putchar function pointer
- Copy bitmap to display buffer, with optional offset
- Copy, cut, scale region
- Single-pixel scroll up region
- Integration with most any dot-matrix type display
Requirements
P1/SPIN1:
- 69 bytes global var RAM for settings, configuration
- terminal.common.spinh (provided by spin-standard-library)
P2/SPIN2:
- 69 bytes global var RAM for settings, configuration
- terminal.common.spin2h (provided by p2-spin-standard-library)
Compiler Compatibility
Processor |
Language |
Compiler |
Backend |
Status |
P1 |
SPIN1 |
FlexSpin (6.5.0) |
Bytecode |
OK |
P1 |
SPIN1 |
FlexSpin (6.5.0) |
Native/PASM |
OK |
P2 |
SPIN2 |
FlexSpin (6.5.0) |
NuCode |
FTBFS |
P2 |
SPIN2 |
FlexSpin (6.5.0) |
Native/PASM2 |
OK |
(other versions or toolchains not listed are not supported, and may or may not work)
Limitations
- Text rendering is s l o w; needs optimization
- Region scrolling not implemented fully on 1bpp displays