Lines Matching defs:module
354 /// Returns the color of the module (pixel) at the given coordinates,
360 (0 .. self.size).contains(&x) && (0 .. self.size).contains(&y) && self.module(x, y)
364 // Returns the color of the module at the given coordinates, which must be in bounds.
365 fn module(&self, x: i32, y: i32) -> bool {
370 // Returns a mutable reference to the module's color at the given coordinates, which must be in bounds.
478 // with the center module at (x, y). Modules can be out of bounds.
493 // Draws a 5*5 alignment pattern, with the center module
504 // Sets the color of a module and marks it as a function module.
626 if self.module(x, y) == runcolor {
638 runcolor = self.module(x, y);
650 if self.module(x, y) == runcolor {
662 runcolor = self.module(x, y);
672 let color: bool = self.module(x, y);
673 if color == self.module(x + 1, y) &&
674 color == self.module(x, y + 1) &&
675 color == self.module(x + 1, y + 1) {