pedrosgali 8 Posted July 11, 2014 Share Posted July 11, 2014 Hey all. First off, I am thoroughly loving this mod. I would very much like access to better tier graphics cards, I know however that this has been (repeatedly) requested so I'll ask for this instead. I noticed while writing my paint program that I can use gpu.get(x, y) to call the specific character set at position x, y so I'm assuming that there is a table somewhere with all the current screen data written to it. Would it be at all possible to store the current back/foreground colours in with this data? I can use gpu.getBackground()/gpu.setForeground() but that only returns the current colour not the colour of a specific pixel. I honestly think that with that small change I could halve my image refresh rate and make more complex animations by only drawing pixels that need drawing, all without the need for shiny new hardware. I hope you find this suggestion useful. =) Quote Link to post Share on other sites
Sangar 92 Posted July 11, 2014 Share Posted July 11, 2014 component.gpu.get(x, y) already returns the color as well. local char, fgAsRGB, bgAsRGB, fgPaletteIndex, bgPaletteIndex = component.gpu.get(x, y) The palette index values will be nil if the colors are not from the palette. Quote Link to post Share on other sites
pedrosgali 8 Posted July 11, 2014 Author Share Posted July 11, 2014 I see, that is awesome. The wiki might need some updates though as that says that you can only get character info. Quote Link to post Share on other sites
Sangar 92 Posted July 15, 2014 Share Posted July 15, 2014 Ah, yes, slipped through the cracks (along a bunch of other things I'm sure). Wiki updated. Quote Link to post Share on other sites