My notes while reading the source code from threejs Editor app, as I've been curious about :
- the editor architecture
- the undo/redo system
- the camera control behaviour & code
- the object transform gizmos behaviours & code
import 'dart:math'; | |
Random random = new Random(); | |
String generateRandomHexColor(){ | |
int length = 6; | |
String chars = '0123456789ABCDEF'; | |
String hex = '#'; | |
while(length-- > 0) hex += chars[(random.nextInt(16)) | 0]; | |
return hex; |
// Copyright 2018 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override |