Wave (Sample 01)

Home   »   Wave (Sample 01)

import 'dart:math';
import 'dart:typed_data';

import 'package:flutter/material.dart';


const amp = 20.0;
const freq = 1 / 150;
final mirrorX = Float64List.fromList([
  1, 0, 0, 0,
  0, -1, 0, 0,
  0, 0, 1, 0,
  0, 0, 0, 1
]);

enum WavePosition { bottom, top }

double sine(double t, double A, double freq) => A * sin(2 * pi * freq * t);

Leave a Reply

Your email address will not be published. Required fields are marked *