free software resistance

 the cost of computing freedom is eternal vigilance



codrgbget.fgp


*original date:* feb 2019
*originally posted:* oct 2024



codrgbget.fgp:

#### license: creative commons cc0 1.0 (public domain)
#### http://creativecommons.org/publicdomain/zero/1.0/

filepath = "pic.jpg"

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
cy2 height minus 1

for cy 0 cy2 1
for cx 0 cx2 1

now codrgbget cx cy
r codget now "r"
g codget now "g"
b codget now "b"

ifmore b r
ifmore b g
now rgbset 15 r g 0
now pset cx cy 15
fig
fig

next
now display
next

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