All Projects → cjsmeele → Stipje

cjsmeele / Stipje

Licence: bsl-1.0
Compile-time XPM-like image parser for C++

Programming Languages

cpp
1120 projects
metaprogramming
66 projects

Projects that are alternatives of or similar to Stipje

Libuv
Cross-platform asynchronous I/O
Stars: ✭ 18,615 (+206733.33%)
Mutual labels:  unicorns
D Zone
An ambient life simulation driven by user activity within a Discord server
Stars: ✭ 466 (+5077.78%)
Mutual labels:  pixel-art
Fkill Cli
Fabulously kill processes. Cross-platform.
Stars: ✭ 6,418 (+71211.11%)
Mutual labels:  unicorns
Unity2d Components
A constantly evolving array of Unity C# components for 2D games, including classes for pixel art cameras, events & messaging, saving & loading game data, collision handlers, object pools, and more.
Stars: ✭ 375 (+4066.67%)
Mutual labels:  pixel-art
Pxltrm
🖌️ pxltrm - [WIP] A pixel art editor inside the terminal
Stars: ✭ 459 (+5000%)
Mutual labels:  pixel-art
Awesome Pixel Art
Curated list of everything awesome around pixel art.
Stars: ✭ 540 (+5900%)
Mutual labels:  pixel-art
Pixel Art React
Pixel art animation and drawing web app powered by React
Stars: ✭ 3,503 (+38822.22%)
Mutual labels:  pixel-art
Monsterpong
Our entry for Github GameOff 2018
Stars: ✭ 23 (+155.56%)
Mutual labels:  pixel-art
Pixeler
CLI image renderer
Stars: ✭ 465 (+5066.67%)
Mutual labels:  pixel-art
Gitfiti
abusing github commit history for the lulz
Stars: ✭ 6,750 (+74900%)
Mutual labels:  pixel-art
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+216100%)
Mutual labels:  unicorns
Cdogs Sdl
Classic overhead run-and-gun game
Stars: ✭ 422 (+4588.89%)
Mutual labels:  pixel-art
Xo
❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
Stars: ✭ 6,277 (+69644.44%)
Mutual labels:  unicorns
Promise Fun
Promise packages, patterns, chat, and tutorials
Stars: ✭ 3,779 (+41888.89%)
Mutual labels:  unicorns
Aposelene
Experimental 2D Engine in C
Stars: ✭ 16 (+77.78%)
Mutual labels:  pixel-art
Spaceduck
🚀 🦆 An intergalactic space theme for Vim, Terminal, and more!
Stars: ✭ 177 (+1866.67%)
Mutual labels:  unicorns
Blockbench
Blockbench - A boxy 3D model editor
Stars: ✭ 495 (+5400%)
Mutual labels:  pixel-art
Cartridge.js
HTML5 retro game engine
Stars: ✭ 23 (+155.56%)
Mutual labels:  pixel-art
Github Spray
Draw on your GitHub contribution graph ░▒▓█
Stars: ✭ 908 (+9988.89%)
Mutual labels:  pixel-art
Slate
Pixel Art Editor
Stars: ✭ 723 (+7933.33%)
Mutual labels:  pixel-art

#+TITLE: Stipje, like XPM images, but C++-style #+AUTHOR: Chris Smeele

Stipje reads XPM-style image strings and converts them to 32-bit pixel buffers at compile-time.

Several image formats are included as well, to (at runtime) output images in PNM, PAM or true-color console block drawing characters. Other formatters can be trivially added.

** Synopsis

Requirements:

  • GCC 8 for experimental c++2a support
  • Kvasir MPL for metaprogramming assistance

#+BEGIN_SRC C++ #include "stipje.hh" #include

int main() { constexpr auto example = " " " ooooooo " " o o #### ##### # ##### # ###### " " o # o # # # # # # # " " o # o #### # # # # # ##### " " o ### o # # # ##### # # " " o o # # # # # # # # " " ooooooo #### # # # #### ###### o " " "stipje (" 00000000" // rgba "o ff0000ff" "# ffffffff"stipje_palette, uint<49> {}, // width uint< 9> {}, // height stipje::pixel_format::rgba{}); stipje::format(std::cout, example, stipje::image_format::console256_squared{});

return 0;

} #+END_SRC

: g++ -Impl/src/kvasir -std=c++2a -Os -o example example.cc : ./example

[[./example.png]]

More docs to be written later :-)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].