D
D
deadnice2016-09-15 13:30:55
PHP
deadnice, 2016-09-15 13:30:55

How to smooth a drawable arc (drawn with GD library) in php?

Hello. There is a need to draw an arc using php (the output should look like a filling graph). b6c9aa69131a41a9b932f3c8a0d0c726.pngIt's quite possible to draw, but the arc "ripples", as I understand it, there is no anti-aliasing. How to smooth? The drawing method is of course a crutch, but I don’t see another way to make the arc wider.

for ($i = 0; $i < 90; $i++){
  imageArc($img, 860, 1292, 1400 - $i, 1400 - $i, -90, 180, $color);
}

imageantialias() from the same library doesn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2016-09-15
@Sanasol

Where is the code?
Maybe the resolution needs to be done more, and not "smooth"?
This is not 3d graphics, there is no such processing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question