diff --git a/cpp/QrCode.hpp b/cpp/QrCode.hpp index 87baebc..c5bbaf7 100644 --- a/cpp/QrCode.hpp +++ b/cpp/QrCode.hpp @@ -141,8 +141,9 @@ class QrCode final { /* - * Returns the color of the module (pixel) at the given coordinates, which is either 0 for white or 1 for black. The top - * left corner has the coordinates (x=0, y=0). If the given coordinates are out of bounds, then 0 (white) is returned. + * Returns the color of the module (pixel) at the given coordinates, which is either + * 0 for white or 1 for black. The top left corner has the coordinates (x=0, y=0). + * If the given coordinates are out of bounds, then 0 (white) is returned. */ public: int getModule(int x, int y) const; diff --git a/java/io/nayuki/qrcodegen/QrCode.java b/java/io/nayuki/qrcodegen/QrCode.java index b207e2a..c513ff5 100644 --- a/java/io/nayuki/qrcodegen/QrCode.java +++ b/java/io/nayuki/qrcodegen/QrCode.java @@ -258,8 +258,9 @@ public final class QrCode { /*---- Public instance methods ----*/ /** - * Returns the color of the module (pixel) at the specified coordinates, which is either 0 for white or 1 for black. The top - * left corner has the coordinates (x=0, y=0). If the specified coordinates are out of bounds, then 0 (white) is returned. + * Returns the color of the module (pixel) at the specified coordinates, which is either + * 0 for white or 1 for black. The top left corner has the coordinates (x=0, y=0). + * If the specified coordinates are out of bounds, then 0 (white) is returned. * @param x the x coordinate, where 0 is the left edge and size−1 is the right edge * @param y the y coordinate, where 0 is the top edge and size−1 is the bottom edge * @return the module's color, which is either 0 (white) or 1 (black) diff --git a/javascript/qrcodegen.js b/javascript/qrcodegen.js index fe384f2..05c094c 100644 --- a/javascript/qrcodegen.js +++ b/javascript/qrcodegen.js @@ -163,8 +163,9 @@ var qrcodegen = new function() { /*---- Accessor methods ----*/ - // (Public) Returns the color of the module (pixel) at the given coordinates, which is either 0 for white or 1 for black. The top - // left corner has the coordinates (x=0, y=0). If the given coordinates are out of bounds, then 0 (white) is returned. + // (Public) Returns the color of the module (pixel) at the given coordinates, which is either + // 0 for white or 1 for black. The top left corner has the coordinates (x=0, y=0). + // If the given coordinates are out of bounds, then 0 (white) is returned. this.getModule = function(x, y) { if (0 <= x && x < size && 0 <= y && y < size) return modules[y][x] ? 1 : 0; diff --git a/python/qrcodegen.py b/python/qrcodegen.py index 4f2808b..95a424f 100644 --- a/python/qrcodegen.py +++ b/python/qrcodegen.py @@ -225,8 +225,9 @@ class QrCode(object): return self._mask def get_module(self, x, y): - """Returns the color of the module (pixel) at the given coordinates, which is either 0 for white or 1 for black. The top - left corner has the coordinates (x=0, y=0). If the given coordinates are out of bounds, then 0 (white) is returned.""" + """Returns the color of the module (pixel) at the given coordinates, which is either + 0 for white or 1 for black. The top left corner has the coordinates (x=0, y=0). + If the given coordinates are out of bounds, then 0 (white) is returned.""" return 1 if ((0 <= x < self._size) and (0 <= y < self._size) and self._modules[y][x]) else 0 diff --git a/rust/src/lib.rs b/rust/src/lib.rs index fa0a2f6..fee87bd 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -200,8 +200,9 @@ impl QrCode { } - // Returns the color of the module (pixel) at the given coordinates, which is either false for white or true for black. The top - // left corner has the coordinates (x=0, y=0). If the given coordinates are out of bounds, then 0 (white) is returned. + // Returns the color of the module (pixel) at the given coordinates, which is either + // false for white or true for black. The top left corner has the coordinates (x=0, y=0). + // If the given coordinates are out of bounds, then 0 (white) is returned. pub fn get_module(&self, x: i32, y: i32) -> bool { 0 <= x && x < self.size && 0 <= y && y < self.size && self.module(x, y) }