From c0b74fbc7322b09f1c6ae624430d422d319f19b6 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Fri, 3 Dec 2021 17:02:10 -0600 Subject: [PATCH] f --- src/pixie/images.nim | 6 +++--- src/pixie/masks.nim | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pixie/images.nim b/src/pixie/images.nim index d8737ee..529d066 100644 --- a/src/pixie/images.nim +++ b/src/pixie/images.nim @@ -95,7 +95,7 @@ proc setColor*(image: Image, x, y: int, color: Color) {.inline, raises: [].} = proc fillUnsafe*( data: var seq[ColorRGBX], color: SomeColor, start, len: int ) {.raises: [].} = - ## Fills the image data with the parameter color starting at index start and + ## Fills the image data with the color starting at index start and ## continuing for len indices. let rgbx = color.asRgbx() @@ -126,7 +126,7 @@ proc fillUnsafe*( data[j] = rgbx proc fill*(image: Image, color: SomeColor) {.inline, raises: [].} = - ## Fills the image with the parameter color. + ## Fills the image with the color. fillUnsafe(image.data, color, 0, image.data.len) proc isOneColor*(image: Image): bool {.raises: [].} = @@ -565,7 +565,7 @@ proc blur*( image.setRgbaUnsafe(x, y, rgbx(values)) proc newMask*(image: Image): Mask {.raises: [PixieError].} = - ## Returns a new mask using the alpha values of the parameter image. + ## Returns a new mask using the alpha values of the image. result = newMask(image.width, image.height) var i: int diff --git a/src/pixie/masks.nim b/src/pixie/masks.nim index ac8a7a6..c09607e 100644 --- a/src/pixie/masks.nim +++ b/src/pixie/masks.nim @@ -172,12 +172,12 @@ proc magnifyBy2*(mask: Mask, power = 1): Mask {.raises: [PixieError].} = proc fillUnsafe*( data: var seq[uint8], value: uint8, start, len: int ) {.raises: [].} = - ## Fills the mask data with the parameter value starting at index start and + ## Fills the mask data with the value starting at index start and ## continuing for len indices. nimSetMem(data[start].addr, value.cint, len) proc fill*(mask: Mask, value: uint8) {.inline, raises: [].} = - ## Fills the mask with the parameter value. + ## Fills the mask with the value. fillUnsafe(mask.data, value, 0, mask.data.len) proc getValueSmooth*(mask: Mask, x, y: float32): uint8 {.raises: [].} =