Laur's blog
Sign in Subscribe

draw

A collection of 1 post
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
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost