Skip to content

Content Tagged "pixmap"

Page 1 of 1

Content Tagged "pixmap"

LibGDX drawPixel has Wrong Colours

January 17, 2016Category: Software
TL;DR: Note that Pixmap.drawPixel(x, y, colour) expects a RGBA8888 colour, even if the pixmap is not RGBA8888 . Today I wanted to create a background with a bunch of different pixels and I had a lot of problems, displaying different colours from what I had in my array. The process is simple…

Create a Background with Vertical Lines of Different Colours

January 17, 2016Category: Software
I've got a list of colours (RGB) in an array and I want to build a background with vertical lines, each representing a colour from my list. The process is too simple to put in a TL;DR :) If my list of colours is, Array<Vector3> cols, then the process is as follows: Create a pixmap: Set one pixel…

All tags