From eea3a41609ab2ac72d19166812e01213de3b0bc3 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Thu, 8 Aug 2024 01:07:32 +0900 Subject: Rename procedures from image-pixel-ref/set! to image-ref/set! --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3fb2a36..35cbc47 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-ref pbm-image x y) → boolean` +#### `(image-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-set! pbm-image x y b)` +#### `(image-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-ref pgm-image x y) → integer` +#### `(image-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-set! pgm-image x y v)` +#### `(image-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-ref ppm-image x y) → (values integer integer integer)` +#### `(image-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-set! ppm-image x y r g b)` +### `(image-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 -- cgit v1.2.3