How to write PHP Algorithms?

Source: Internet
Author: User
How to write PHP Algorithms? we
{
Border-radius: 62px;/* All Corners use rounded corners with a radius of 5 px. This attribute is a standard attribute of CSS3 */
-Moz-border-radius: 62px;/* private attribute of Mozilla browser */
-Webkit-border-radius: 62px;/* Private attributes of the Webkit browser */
Background: #000;
Width: 62px; height: 62px;
Border-radius: 62px 62px 62px;/* The four radius values are the upper left corner, the upper right corner, the lower right corner, and the lower left corner */
Margin-left: 15px; margin-top: 15px; float: left; color: # FFF;
Color: # FFF;
}


Reply to discussion (solution)

Why are you not clear?

Html5?

If you want to achieve this effect
Use html5 canvas for better implementation

Does not understand... Silent Tears

Why are you not clear?


. We {border-radius: 62px;/* All Corners use rounded corners with a radius of 5 px. This attribute is the standard attribute of CSS3 */-moz-border-radius: 62px; /* Mozilla's private properties */-webkit-border-radius: 62px;/* Webkit's private properties */background: #000; width: 62px; height: 62px; border-radius: 62px 62px 62px;/* The four radius values are top left, top right, bottom right, and bottom right */margin-left: 15px; margin-top: 15px; float: left; color: # FFF ;}

Why are you not clear?


. We {border-radius: 62px;/* All Corners use rounded corners with a radius of 5 px. This attribute is the standard attribute of CSS3 */-moz-border-radius: 62px; /* Mozilla's private properties */-webkit-border-radius: 62px;/* Webkit's private properties */background: #000; width: 62px; height: 62px; border-radius: 62px 62px 62px;/* The four radius values are top left, top right, bottom right, and bottom right */margin-left: 15px; margin-top: 15px; float: left; color: # FFF ;}



I am not drawing a circle now. I want to make it like that... Use algorithms .. How to draw... 1. it is too troublesome to maintain each painting at that time.

Locate the position of each dot in the graph

$ A = rand (0, 2 * M_PI); // polar angle $ r = rand (0, $ R ); // polar distance $ x = $ ox + $ r * cos ($ a); $ y = $ oy + $ r * sin ($ );

To ensure that the dots do not overlap, you need to calculate the distance between two points separately:
Sqrt (pow ($ x1-$ x2), 2) + pow ($ y1-$ y2), 2)/2 <= dot radius

How does the data about the circle size and position come from? This is the key point.

Locate the position of each dot in the graph

$ A = rand (0, 2 * M_PI); // polar angle $ r = rand (0, $ R ); // polar distance $ x = $ ox + $ r * cos ($ a); $ y = $ oy + $ r * sin ($ );

To ensure that the dots do not overlap, you need to calculate the distance between two points separately:
Sqrt (pow ($ x1-$ x2), 2) + pow ($ y1-$ y2), 2)/2 <= dot radius



You cannot understand .. Could you help me write my results?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.