free software resistance
the cost of computing freedom is eternal vigilance
### codh.fgp
*original date:* feb 2019
*originally posted:* oct 2024
codh.fgp:
```
#### license: creative commons cc0 1.0 (public domain)
#### http://creativecommons.org/publicdomain/zero/1.0/
filepath = "demo.png"
imgsize codimgsize filepath
width codget imgsize "w"
height codget imgsize "h"
now winsize width height
pic imgset 0 0 filepath
now display
cx2 width minus 1 189
cy2 height minus 1 178
data arropen "codh.txt"
whichline 0
for cy 0 cy2 1
inc whichline 1
try
each arrget data whichline split each "|"
except
p
resume
for cx 0 cx2 1
try
whichpic cx plus 1 ; arrget each whichpic ; split whichpic " "
picr whichpic mid 1 1 val
picg 0
picb picr
except
p
resume
now codrgbget cx cy
r codget now "r" divby 3 int
g codget now "g" divby 3 int
b codget now "b" divby 3 int
ifequal picr 255
now rgbset 15 255 255 255
now pset cx cy 15
else
nr picr minus r plus 1
ifless nr 0
nr
fig
ng picg minus g plus 1
ifless ng 0
ng
fig
nb picb minus b plus 1
ifless nb 0
nb
fig
now rgbset 15 nr ng nb
now pset cx cy 15
fig
next
now display
next
now ""
now display lineinput
```
license: 0-clause bsd
```
# 2019 mn
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```
=> https://freesoftwareresistance.neocities.org