4 Copyright (c) 2013 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file.
11 <title>Voronoi
</title>
13 <link rel=
"stylesheet" href=
"//fonts.googleapis.com/css?family=Open+Sans:300,700">
14 <link href=
"/static/css/out/site.css" rel=
"stylesheet">
16 <script type=
"text/javascript" src=
"example.js"></script>
30 This demo renders the
<a href=
"http://en.wikipedia.org/wiki/Voronoi"
31 target=
"_blank">Voronoi diagram
</a> for a moving set of points
32 using a brute force technique.
35 Note: the C++ source code of this demo is available in the Native Client SDK (
<tt>examples/demo/voronoi
</tt>).
38 FPS:
<span id=
"fps">0</span>
41 <div class=
"panel panel-info">
45 <div class=
"panel-body">
46 <table id=
"config" cellspacing=
"0" cellpadding=
"0">
49 <td class=
"name">Points:
</td>
51 <input type=
"range" id=
"pointRange" min=
"1" max=
"1024" step=
"1" value=
"48">
52 <label id=
"pointCount">48 points
</label>
56 <td class=
"name">Thread Count:
</td>
58 <select id=
"threadCount">
59 <option value=
"0">Main Thread only
</option>
60 <option value=
"1">1 Thread
</option>
61 <option value=
"2" selected=
"selected">2 Threads
</option>
62 <option value=
"4">4 Threads
</option>
63 <option value=
"6">6 Threads
</option>
64 <option value=
"8">8 Threads
</option>
65 <option value=
"12">12 Threads
</option>
66 <option value=
"24">24 Threads
</option>
67 <option value=
"32">32 Threads
</option>
72 <td class=
"name"><label for=
"drawPoints">Draw Points:
</label></td>
74 <input type=
"checkbox" id=
"drawPoints" checked=
"checked">
79 <label for=
"drawInteriors">Draw Interiors:
</label>
82 <input type=
"checkbox" id=
"drawInteriors" checked=
"checked">
91 <div class=
"Demo-body">
93 <div id=
"listener" class=
"Demo-content"></div>
96 <div id=
"loading-cover">
98 <div id=
"statusField"></div>
99 <div id=
"progress" class=
"progress progress-striped active">
100 <div id=
"progress-bar" class=
"progress-bar" role=
"progressbar" aria-valuenow=
"0" aria-valuemin=
"0" aria-valuemax=
"100" style=
"width: 0%">