简体   繁体   English

Processing 能否实现clippath?

[英]Can Processing Implement clippath?

As you known,we can draw a page showing sin waving by using clippath and continuous changing the d attribute of the path in html,but If I want to implement a clippath with processing in Java?What should I do?walkaround is welcome.如您所知,我们可以通过使用clippath并不断更改html中路径的d属性来绘制显示sin waving的页面,但是如果我想在Java中实现带有处理的clippath?我该怎么做?欢迎walkaround。

This page offer by Antonio Molinaro tell the answer.安东尼奥·莫利纳罗 (Antonio Molinaro) 提供的这个页面告诉了答案。

I think this solves all your problems.我认为可以解决您的所有问题。 The link is to a Processing applet with the source code for a Strip-Chart simulator.该链接指向带有带状图模拟器源代码的处理小程序。 In the first two charts, the demo shows how to plot a sine wave.在前两个图表中,演示展示了如何绘制正弦波。 The code is very well commented.代码注释得很好。 I don't think that posting nearly 200 lines of code (which everybody can download for free under the creative commons license by following the link) would ADD anything to this answer.我不认为发布近 200 行代码(每个人都可以通过点击链接在知识共享许可下免费下载)会给这个答案添加任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM