• G
    gmisail

    I got it, it's Image.at(). I couldn't find it in the docs.

    posted in Kode read more
  • G
    gmisail

    I am currently writing a raycaster using G1 operations. Writing an untextured raycaster was easy, however I am having problems adding textures. I need to get the color of a pixel of my texture, however you can only set the pixel, (setPixel(x, y, etc...)), and you are not able to get a specific pixel (i.e. getPixel(x, y)) Does this feature exist, or am I missing something? I have checked the API, to no avail.

    Just in case you want to see the code,

    var texColor = textures[textureNum].g1.getPixel(Std.int(textureX), Std.int(textureY));
    

    Thank you,

    gmisail

    posted in Kode read more

Looks like your connection to Kode Forum was lost, please wait while we try to reconnect.