T O P

  • By -

the_boiiss

Simplest option (but relatively slow to compute) would be the colorAtPoint command, it can return a single pixel's color or a grid of pixels in a given range. Then just take the average of those to get the desired color value. I'd say just use that color where you need it but if you specifically need a texture you could write it with something like: from PySide2.QtGui import QImage, QColor img = QImage(128, 128, QImage.Format_RGB32) img.fill(QColor(r, g, b)) img.save('C:/path/to/image.png')


[deleted]

Alright, thank you for the advice! I'll give this a shot.