(worker *Worker)
| 107 | } |
| 108 | |
| 109 | func NewRandomRotatedEllipse(worker *Worker) *RotatedEllipse { |
| 110 | rnd := worker.Rnd |
| 111 | x := rnd.Float64() * float64(worker.W) |
| 112 | y := rnd.Float64() * float64(worker.H) |
| 113 | rx := rnd.Float64()*32 + 1 |
| 114 | ry := rnd.Float64()*32 + 1 |
| 115 | a := rnd.Float64() * 360 |
| 116 | return &RotatedEllipse{worker, x, y, rx, ry, a} |
| 117 | } |
| 118 | |
| 119 | func (c *RotatedEllipse) Draw(dc *gg.Context, scale float64) { |
| 120 | dc.Push() |
no outgoing calls
no test coverage detected
searching dependent graphs…