diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2024-08-07 23:42:19 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2024-08-07 23:43:24 +0900 |
commit | f771fb288ff62d761fcf43e0815a9b2a482db7b4 (patch) | |
tree | 009f9289fbb6c0e937993fd00e9bcdf798d50364 /README.md | |
parent | 440d81869346951bbd7060043faeb5593ac5865d (diff) |
Rename procedures from image-pixel-read/write! to image-pixel-ref/set!
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |