Forgot password?
 Create new account
View 169|Reply 1

RadialShade圆心位置不对

[Copy link]

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

hbghlyj Posted at 2023-7-30 13:03:08 |Read mode
  1. \documentclass{standalone}
  2. \usepackage{tikz}
  3. \begin{document}
  4. \begin{tikzpicture}
  5. \shade[inner color=white,outer color=orange] (-1,1) circle (3.4);
  6. \end{tikzpicture}
  7. \end{document}
Copy the Code

尝试将以上的TikZ代码转换为Asymptote的RadialShade
  1. size(100);
  2. radialshade(unitcircle,white,(0,0),0,orange,(0,0),1);
Copy the Code

Screenshot 2023-07-30 at 13-01-56 Asymptote Vector Graphics.png
输出HTML发现圆心不在(0,0),而是在(-1,0),为什么呢?

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

 Author| hbghlyj Posted at 2023-7-30 13:04:24
输出格式PNG,圆心就是(0,0)对了
workspace.png

手机版Mobile version|Leisure Math Forum

2025-4-20 12:34 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list