INNER CODE UNIT · Dart

y2

bernaferrari/color-studio · lib/gradient.dart:105

    y2 = widget.constraints.maxHeight / 2 - 48;
  }

  void onMove(PointerMoveEvent event) {
    setState(() {
      if (event.delta.dx != 0) {
        x1 += event.delta.dx;
        x1 = xCornerDetection(x1);
      }
      if (event.delta.dy != 0) {
        y1 += event.delta.dy;
        y1 = yCornerDetection(y1);
      }

      // y2 - y1;
      wLine = math.sqrt(math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2));
      angle = math.atan((y2 - y1) / (x2 - x1));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…