Sometimes you are bound to plot 2D real functions with a big positive maximum and a small (in comparison) negative minimum. In case you use a colormap like ‘jet’ you must be aware of two things: Jet/Rainbow is usually a bad choice for colormap for several reasons. The reader must infer which color corresponds toRead More
Author: soy_yuma
Assembling Sprite Sheets with ImageMagick

When making a 2D game one usually must assemble several images (sprites) into a single big texture (sprite sheet). On the game the sprite sheet will be loaded and the different sprites will be shown accordingly to game events or the game internal time (animations). Imagine that your awesome artist (<3) gives you these imagesRead More
Implementing classes in Lua 5.2

Welcome to the fifth part of these tutorials about embedding Lua 5.2 into a C++ host program. If you have not yet, you may want to read my previous notes on Running Lua 5.2 scripts from C++, Passing variables from Lua 5.2 to C++, Calling C++ functions from Lua 5.2, or Creating a Lua 5.2 dynamic link library ofRead More