본문 바로가기

list

(124)
line draw tool layer: 0 : vsb 1 : vsb 2 : vsb 3 : vsb 4 : vsb 5 : vsb 6 : vsb 7 : vsb 8 : vsb 9 : vsb keyNextLayer: '=', ..
html javascript - check canvas mousedown mouse pos: " data-ke-type="html">HTML 삽입미리보기할 수 없는 소스
html javascript - element dataset test dataset test dataset 1
html canvas - draw rect HTML 삽입미리보기할 수 없는 소스  const canvas = document.createElement('canvas')const ctx = canvas.getContext('2d')canvas.width = 400canvas.height = 100canvas.style.backgroundColor = 'gray'// tistory content divconst content = document.getElementsByClassName('entry-content')[0]if (content) { content.appendChild(canvas)} else { // mobile const view = document.getElementsByClassName('blogview_content')[0]..
html javascript - array remove (splice) const arr0 = [0,1,2,3,4,5,6,7]const arr1 = arr0.splice(1,3)console.log(arr0) // [0,4,5,6,7]console.log(arr1) // [1,2,3]const arr2 = ['O', 'I', 'II', 'III', 'IV', 'V', 'VI']arr2.splice(1, 0, 'a') // insertconsole.log(arr2) // ['O', 'a', 'I', 'II', 'III', 'IV', 'V', 'VI']arr2.splice(4, 1, 'b') // replaceconsole.log(arr2) // ['O', 'a', 'I', 'II', 'b', 'IV', 'V', 'VI']const arr3 = [ { name: 'arr..
Web Audio API - Simple synth keyboard source code Volume: Current waveform: Sine Square Sawtooth Triangle Custom    const freqList = []// SPN : scientific pitch notationconst spnList = ['C','C#','D','D#','E','F','F#','G','G#','A','A#','B'] https://en.wikipedia.org/wiki/Pitch_class Pitch class - WikipediaFrom Wikipedia, the free encyclopedia Set of all pitches tha..
Web Audio API - Simple synth keyboard Volume: Current waveform: Sine Square Sawtooth Triangle Custom " data-ke-type="html">HTML 삽입미리보기할 수 없는 소스      블로그에 올릴때 사이즈 문제로 스크롤 제거    References : https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Simple_synth
html javascript - array filter const arr0 = ['car','bus','aircraft','spacecraft','car1','motorcycle','car'] const arr1 = [ {name: 'car', type: 'land', cost: 100}, {name: 'bus', type: 'land', cost: 50}, {name: 'aircraft', type: 'sky', cost: 200}, {name: 'motorcycle', type: 'land', cost: 80}, {name: 'spacecraft', type: 'space', cost: 1000}]const arr2 = [5,3,21,6,50,100,1,10,12,20,2]const filter0 = arr0.filter(str => s..