python - gtk.gdk: make image 50% grayer -
i have image wiht gtk.gdk
. want make grayed out, wanna draw gray rectangle on 50% alpha value. how this? docs confusing.
i thought of way taking half of color's highest values , taking half of number directly between them , putting on lowest number (eg: 0,255,255 127,255,255 or 0,127,255 96,127,255) or taking second highest number , highest number, finding 50%, putting second highest number, doing again absolute lowest number (eg: 0,128,255 > 112,192,255) hope works me , you, right im recommending myself , you, second option, if you're lazy, first option less work
Comments
Post a Comment