INNER CODE UNIT · Dart

xOffset

vintage/scratcher · lib/widgets.dart:293

    final xOffset = size.width / accuracy;
    final yOffset = size.height / accuracy;

    final points = <Offset>[];
    for (var x = 0; x < accuracy; x++) {
      for (var y = 0; y < accuracy; y++) {
        final point = Offset(
          x * xOffset,
          y * yOffset,
        );
        points.add(point);
      }
    }

    return points;
  }

  /// Resets the scratcher state to the initial values.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…