跳到主内容
Ciallo
Back to games & experiments

形变实验室

极坐标曲线在两个形状之间连续过渡。

极坐标玫瑰线

Try the experience, then read the guide. Pausing keeps your state; resetting clears the current session and parameters.

Try a different scene

Loading a preset restarts the experiment and applies its parameters. You can fine-tune them afterwards.

Preparing the experience…

UNDERSTAND EVERY MOVE

形变实验室 · Detailed guide

用极坐标曲线观察参数如何改变轮廓。自动模式展示连续变化,手动模式则适合做控制变量Comparison。采样点决定绘制精度,参数a、b才决定数学曲线本身;不要把更多采样点误认为更多花瓣。

Getting started

  1. 01先Close自动形变,载入圆形基准。
  2. 02只增加a,再只增加b,Comparison两种角度items。
  3. 03重新打开自动形变,看参数读数、轮廓与时间怎样1起变化。

Controls & parameters

  • a控制cos(3θ)items,b控制sin(2θ)items;自动模式下由时钟驱动这两个参数。
  • 基础半径决定缩放,旋转Speed决定朝向随时间变化。
  • 采样精度是从同1函数取多少点,负半径按极坐标转换处理,画布会自动适配。

r(θ)=1+a·cos3θ+b·sin2θ

θ从0走到2π,计算对应半径r,再用x=r cosθ、y=r sinθ得到平面坐标。a=b=0时r恒为1,所以得到圆。加入不同频率的角度items,会形成不同周期结构和对称性。

闭合、采样与自交

首尾参数覆盖同1个周期,闭合曲线需要把最终点连接到起始点。采样增多会减少折线感,但不能消除函数本身的自交。参数较大时半径可能穿过0,形成更复杂的轮廓,这不是渲染器随机出错。

Strategies & observations
  • 做对照时把旋转设为0,排除朝向变化的影响。
  • 只改1items参数并记录正负号,观察对称结构。
  • Comparison60点与720点时保持a、b和半径相同。
Common misconceptions
  • 自动模式下a、b滑块被锁定,Close自动形变后才能手动调节。
  • 采样点数不改变函数的真实花瓣数。

Put your understanding into practice

completed0 / 3

Follow the steps, compare the expected results, and mark the challenge complete yourself. This records your practice without judging your results.

CHALLENGE 01

验证圆形

  1. 载入a=b=0场景。
  2. 改变采样点和旋转Speed。

Expected result: 数学轮廓保持圆形,仅精度或朝向参数变化。

CHALLENGE 02

3周期items

  1. 只设a=0.6、b=0。
  2. 观察1周角度中的重复结构。

Expected result: 能指出cos3θitems引入的3周期特征。

CHALLENGE 03

采样精度

  1. 选择同1个复杂轮廓。
  2. Comparison60点与720点,分别导出SVG。

Expected result: 高精度更平滑,但两者对应同1组曲线参数。

Explore similar experiences

Contact Ender

Say hello, discuss a commission, or send a little kindness. Here's where to find me.

© 2026 Ender · Cat Garden