Skip to content

Commit

Permalink
color update and screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
williamngan committed May 6, 2019
1 parent 84573c5 commit 7643c01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file added assets/pts-demo-sound.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions demo/sound.freqDomain.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ Pts.quickStart( "#pt", "#fe3" );
// draw spikes
let f_scale = f_acc/bins;
for (let i=0, len=tris.length; i<len; i++) {
form.fillOnly("#123").polygon( tris[i] );
form.fillOnly( colors[ i%colors.length ] ).point( tris[i][1], freqs[i].y * 10, "circle" )
let c = colors[ i%colors.length ];
form.fillOnly( c ).polygon( tris[i] );
form.fillOnly( c ).point( tris[i][1], freqs[i].y * 10, "circle" )
}

// draw "lips" based on time domain data
Expand Down

0 comments on commit 7643c01

Please sign in to comment.