Forgot password
 Register account
View 250|Reply 1

RadialShade圆心位置不对

[Copy link]

3208

Threads

7846

Posts

51

Reputation

Show all posts

hbghlyj posted 2023-7-30 13:03 |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),为什么呢?

3208

Threads

7846

Posts

51

Reputation

Show all posts

original poster hbghlyj posted 2023-7-30 13:04
输出格式PNG,圆心就是(0,0)对了
workspace.png

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-12 15:42 GMT+8

Powered by Discuz!

Processed in 0.013209 seconds, 25 queries