aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
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 4638a7f..3fb2a36 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-pixel-read pbm-image x y) → boolean`
+#### `(image-pixel-ref 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-pixel-write! pbm-image x y b)`
+#### `(image-pixel-set! 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-pixel-read pgm-image x y) → integer`
+#### `(image-pixel-ref 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-pixel-write! pgm-image x y v)`
+#### `(image-pixel-set! 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-pixel-read ppm-image x y) → (values integer integer integer)`
+#### `(image-pixel-ref 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-pixel-write! ppm-image x y r g b)`
+### `(image-pixel-set! 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