我正在尝试按照与此视频相同的方式创建模拟 (1:29 - 1:45)
https://www.youtube.com/watch?v=pqBSNAOsMDc
我认为实现无限循环过程的一个简单方法是让海龟面向 0,0,然后在半径 90 内寻找空块(因此它们总是向右看。
我收到错误代码..
'没有定义从点 (3,-6) 到同一点的航向。'
有人可以用我的代码指出正确的方向吗?
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
turtles-own [ faction ]
to setup
clear-all
ask patches [ set pcolor white ]
set-patch-size 7
resize-world min-pxcor max-pxcor min-pycor max-pycor
ask patch 0 0
[ ask patches in-radius ( max-pxcor * .6) with [ random-float 100 < density ]
[ sprout 1
[
set shape "circle"
assign-factions
set color faction-color
set size 1 ] ] ]
ask turtles-on patch 0 0 [ die ] …Run Code Online (Sandbox Code Playgroud) 我正在尝试弄清楚当一张图像悬停时如何对所有其他图像应用模糊效果:
img:not(:hover) {
filter: blur(3px);
-webkit-transition: 400ms ease 100ms;
-moz-transition: 400ms ease 100ms;
transition: 400ms ease 100ms;
}Run Code Online (Sandbox Code Playgroud)
<img src="http://localhost/wordpress/wp-content/uploads/2020/07/All-the-fruits-that-day-were-poisend-.jpg" width="100px">
<img src="http://localhost/wordpress/wp-content/uploads/2020/07/All-the-fruits-that-day-were-poisend-.jpg" width="100px">
<img src="http://localhost/wordpress/wp-content/uploads/2020/07/All-the-fruits-that-day-were-poisend-.jpg" width="100px">Run Code Online (Sandbox Code Playgroud)
我希望当当前没有图像悬停时,所有图像都会正常渲染(即没有模糊效果)。但事实似乎并非如此,因为此时此刻,一切都变得模糊了。
我怎样才能用CSS达到这个效果呢?