aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-08-07 12:33:41 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-08-07 23:43:20 +0900
commit440d81869346951bbd7060043faeb5593ac5865d (patch)
tree33ea344eff202777620bfa4660751e5f70271e22 /README.md
parent4847907ee7e44f9b83e7f7c55dc9605d261bb18e (diff)
Rename procedures from image-ref/set! to image-pixel-read/pixel-write!
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 35cbc47..4638a7f 100644
--- a/README.md
+++ b/README.md
@@ -48,13 +48,13 @@ Returns the maximum value for pixel intensity in a PBM image, which is
always `#t` for PBM images, indicating binary values (black and
white).
-#### `(image-ref pbm-image x y) → boolean`
+#### `(image-pixel-read pbm-image x y) → boolean`
Returns the value of the pixel at coordinates `(x, y)` in the
specified `image`. The return value is `#t` for a white pixel and `#f`
for a black pixel.
-#### `(image-set! pbm-image x y b)`
+#### `(image-pixel-write! pbm-image x y b)`
Sets the pixel at coordinates `(x, y)` in the specified `image` to
the boolean value `b`. If `b` is `#t`, the pixel is set to white; if
@@ -72,12 +72,12 @@ intensity, defaulting to 255 if not provided.
Returns the maximum pixel intensity value for the specified PGM image.
-#### `(image-ref pgm-image x y) → integer`
+#### `(image-pixel-read pgm-image x y) → integer`
Returns the gray value of the pixel at coordinates `(x, y)` in the
specified PGM image. The value is an integer between 0 and `maxval`.
-#### `(image-set! pgm-image x y v)`
+#### `(image-pixel-write! pgm-image x y v)`
Sets the pixel at coordinates `(x, y)` in the specified PGM image to
the given integer value `v`, which must be between 0 and `maxval`.
@@ -94,13 +94,13 @@ intensity, defaulting to 255 if not provided.
Returns the maximum color intensity value for the specified PPM image.
-#### `(image-ref ppm-image x y) → (values integer integer integer)`
+#### `(image-pixel-read ppm-image x y) → (values integer integer integer)`
Returns the RGB values of the pixel at coordinates `(x, y)` in the
specified PPM image as three integers, representing the red, green,
and blue components, respectively.
-### `(image-set! ppm-image x y r g b)`
+### `(image-pixel-write! ppm-image x y r g b)`
Sets the pixel at coordinates `(x, y)` in the specified PPM image to
the given RGB values `r`, `g`, and `b`, which must be integers between