Nameless God

Results 5 comments of Nameless God

``` javascript const obj = {1:222, 2:123, 5:888} console.log([...Array(13).keys()].slice(1).map(e=>obj[e]||null)) ```

直接改源码,创建一个临时的canvas,用它画下resize过的pattern就行 ```ts const getResizedImagePattern = ( ctx: CanvasRenderingContext2D, img: any, width: number, height: number, repeat = "repeat" ) => { const tempCanvas = document.createElement("canvas"); const tCtx = tempCanvas.getContext("2d"); tempCanvas.width =...

手势支持日后会完善 比较卡是因为raymarching本身比较烧显卡,shadertoy的是小窗口渲染,网页全屏渲染分辨率高了肯定会卡 shadertoy的uniforms都封装在kokomi.UniformInjector里了,都是最常用的 帧率暂不支持,本身不怎么常用,要查看的话可以用kokomi.Stats 分辨率已支持,是iResolution 由于没做暂停功能,当前播放帧数可以直接用经过时间iTime代替

遇到了差不多的问题,就是控制台没报错但不能正常显示(热重载已关,开发者工具版本最新),每次都要手动清除编译缓存才恢复正常

The temporary solution is to just type "/src/..." and replace all of the "/src" with "@", that's it.