1
PDE로 작성된 스케치를 웹 페이지의 배경으로 사용하고 싶습니다. 이것이 가능한가?processing.js 배경으로 스케치 사용
html {
background: url(sketch.pde) no-repeat center center fixed;
}
업데이트
이 같은 캔버스를 설정 :
<canvas id="twit" data-processing-sources="twit.pde"
height="window.innerHeight-10"
width="window.innerWidth"
tabindex="0"
style="image-rendering">
</canvas>
그리고
나는이 CSS 코드의 sketch.pde 파일하지만 기쁨을 사용하여 시도 -moz-element를 사용하여 .css의 캔버스를 참조하십시오.
{background: -moz-element(#twit) no-repeat;}
감사합니다. 너는 나를 올바른 길로 인도했다. 나는 이제 그것을 부 !다! 원래 질문의 코드 –