This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _DAISY_BISTREAM_AUTOCORRELATION_HPP_ | |
#define _DAISY_BISTREAM_AUTOCORRELATION_HPP_ | |
#include <cmath> | |
#include <cstdint> | |
#include <type_traits> | |
#include <vector> | |
// smallest power of 2 that fits n | |
template <typename T> constexpr T smallest_pow2(T n, T m = 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ColorChangingController extends SimpleAnimation { | |
final Set<Fill> fills = {}; | |
ColorChangingController(String animationName) : super(animationName); | |
@override | |
bool init(Artboard artboard) { | |
if (!super.init(artboard)) { | |
return false; | |
} | |
// Crappy way to find the right components, we need to add an | |
// artboard.get('name'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/scheduler.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatefulWidget { | |
@override | |
_MyAppState createState() => _MyAppState(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'dart:ui' as ui; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
import 'package:flare_dart/math/mat2d.dart'; | |
import 'flare.dart'; | |
import 'flare_actor.dart'; | |
import 'flare_controller.dart'; | |
/// [FlareControls] is a concrete implementation of the [FlareController]. | |
/// | |
/// This controller will provide some basic functionality, such as | |
/// playing an animation, and advancing every frame. If multiple animations are |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:typed_data'; | |
import 'package:flare_dart/math/mat2d.dart'; | |
import 'package:flare_flutter/flare.dart'; | |
import "package:flare_flutter/flare_actor.dart"; | |
import 'package:flare_flutter/flare_controller.dart'; | |
import "package:flutter/material.dart"; | |
import 'package:flutter/services.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:typed_data'; | |
import 'package:flutter/material.dart'; | |
import 'dart:ui' as ui; | |
void main() async { | |
const double width = 800; | |
const double height = 600; | |
final ui.PictureRecorder recorder = new ui.PictureRecorder(); | |
final ui.Canvas canvas = | |
new ui.Canvas(recorder, Rect.fromLTWH(0, 0, width, height)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
import 'flare.dart'; | |
import 'flare_actor.dart'; | |
import 'flare_controller.dart'; | |
import 'package:flare_dart/math/mat2d.dart'; | |
/// [FlareControls] is a concrete implementation of the [FlareController]. | |
/// | |
/// This controller will provide some basic functionality, such as | |
/// playing an animation, and advancing every frame. If multiple animations are |
NewerOlder