16
Programs / Floyd–Steinberg dithering
« on: July 16, 2018, 04:30:08 am »
implementation of https://en.wikipedia.org/wiki/Floyd%E2%80%93Steinberg_dithering
Code: QB64: [Select]
- deflng a-z
- dither_bw img1, img2, 0.1
- dither img1, img3, 2
- dither img1, img4, 4
- _dest 0
- 'colour dither
- 'source image, destination image, number of colours per channel
- _dest img2
- _source img2
- _putimage , img1
- 'black and white dither
- 'source image, destination image, bw threshold percent
- _dest img2
- _source img2
- _putimage , img1