|
1387 | 1387 | const VolumetricDisplayPrograms = { |
1388 | 1388 | programs: [ |
1389 | 1389 | { |
1390 | | - name: 'transparent white', |
| 1390 | + name: 'white glass', |
1391 | 1391 | uiHtml: 'All pixels = #FFFFFF06', |
1392 | 1392 | init() { |
1393 | 1393 | VolumetricDisplay.fill({ r: 255, g: 255, b: 255, a: 6 }); |
|
1559 | 1559 | } |
1560 | 1560 | }, |
1561 | 1561 | { |
1562 | | - name: 'waves', |
| 1562 | + name: 'ripple', |
1563 | 1563 | uiHtml: ` |
1564 | | - <span style="line-height: 30px;"><button id="pauseWaves" title="pause/resume waves" style="border: 1px solid #88ffff; background-color: #000000; color: #88ffff; cursor: pointer;">pause waves</button></span> |
| 1564 | + <span style="line-height: 30px;"><button id="pauseRipple" title="pause/resume ripple" style="border: 1px solid #88ffff; background-color: #000000; color: #88ffff; cursor: pointer;">pause ripple</button></span> |
1565 | 1565 | `, |
1566 | 1566 | instanceData: { |
1567 | 1567 | timeMs: 0, |
1568 | 1568 | lastTimeMs: 0, |
1569 | 1569 | isPaused: false, |
1570 | | - pauseWavesButton: null |
| 1570 | + pauseRippleButton: null |
1571 | 1571 | }, |
1572 | 1572 | init() { |
1573 | 1573 | this.instanceData.isPaused = false; |
1574 | | - this.instanceData.pauseWavesButton = VolumetricDisplayControl.uiDisplayRightPanelBody.querySelector('#pauseWaves'); |
1575 | | - this.instanceData.pauseWavesButton.innerText = 'pause waves'; |
1576 | | - this.instanceData.pauseWavesButton.style.backgroundColor = '#000000'; |
1577 | | - this.instanceData.pauseWavesButton.style.color = '#88ffff'; |
1578 | | - this.instanceData.pauseWavesButton.addEventListener('click', (event) => { |
| 1574 | + this.instanceData.pauseRippleButton = VolumetricDisplayControl.uiDisplayRightPanelBody.querySelector('#pauseRipple'); |
| 1575 | + this.instanceData.pauseRippleButton.innerText = 'pause ripple'; |
| 1576 | + this.instanceData.pauseRippleButton.style.backgroundColor = '#000000'; |
| 1577 | + this.instanceData.pauseRippleButton.style.color = '#88ffff'; |
| 1578 | + this.instanceData.pauseRippleButton.addEventListener('click', (event) => { |
1579 | 1579 | event.stopPropagation(); |
1580 | 1580 | event.preventDefault(); |
1581 | 1581 | this.instanceData.isPaused = !this.instanceData.isPaused; |
1582 | 1582 | if (this.instanceData.isPaused) { |
1583 | | - this.instanceData.pauseWavesButton.innerText = 'resume waves'; |
1584 | | - this.instanceData.pauseWavesButton.style.backgroundColor = '#88ffff'; |
1585 | | - this.instanceData.pauseWavesButton.style.color = '#000000'; |
| 1583 | + this.instanceData.pauseRippleButton.innerText = 'resume ripple'; |
| 1584 | + this.instanceData.pauseRippleButton.style.backgroundColor = '#88ffff'; |
| 1585 | + this.instanceData.pauseRippleButton.style.color = '#000000'; |
1586 | 1586 | } else { |
1587 | 1587 | this.instanceData.lastTimeMs = Date.now(); |
1588 | | - this.instanceData.pauseWavesButton.innerText = 'pause waves'; |
1589 | | - this.instanceData.pauseWavesButton.style.backgroundColor = '#000000'; |
1590 | | - this.instanceData.pauseWavesButton.style.color = '#88ffff'; |
| 1588 | + this.instanceData.pauseRippleButton.innerText = 'pause ripple'; |
| 1589 | + this.instanceData.pauseRippleButton.style.backgroundColor = '#000000'; |
| 1590 | + this.instanceData.pauseRippleButton.style.color = '#88ffff'; |
1591 | 1591 | } |
1592 | 1592 | }); |
1593 | 1593 | VolumetricDisplay.fill(); |
|
0 commit comments