Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe

pixmap

A collection of 2 posts
LibGDX drawPixel has Wrong Colours
colour

LibGDX drawPixel has Wrong Colours

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.
Jan 17, 2016 1 min read
Create a Background with Vertical Lines of Different Colours
background

Create a Background with Vertical Lines of Different Colours

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>
Jan 17, 2016 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost