- Table of Contents
Color Circle2
is version 2 of Color Circle
. It still draws the circle and point cloud.
- circleNum: The number of the circle in this drawing.
cc := arts.NewColorCircle2(30)
dot line
would draw images with the short dot and short. The short lines would compose as a big circle.
- n: The number of elements in this image.
- ras/canv: Control the appearance of this image.
- randColor: Use the specified color or random colors.
dl := arts.NewDotLine(100, 20, 50, false)
random shape
would draw images with random shapes. The whole image would rotate with some degree.
- shapeNum: It indicates how many shapes you want to draw.
rs := NewRandomShape(150)
Janus
would draw an image with multiple circles split at its center with random noise in the horizontal direction.
Contour Line
uses the perlin noise
to do some flow field.
- lineNum: It indicates how many lines.
Silk Sky
would draw an image with multiple circles converge to one point or one circle.
- circleNum: The number of the circles in this drawing.
- sunRadius: The radius of the sun. The sun is a point/circle where other circles meet.
silkSky := NewSilkSky(circleNum int, sunRadius float64)
Julia
is to draw a Julia Set
. Julia Set is a math concept. You can define your own formula in this package.
- fn: The custom julia set function.
- maxz: The maximum modulus length of a complex number.
- xaixs, yaixs: The range for the X-Y coordination used to mapping the julia set number to the real pixel of the image. These should be positive. It only indicates the first quadrant range.
func julia1(z complex128) complex128 {
c := complex(-0.1, 0.651)
z = z*z + c
return z
}
julia := arts.NewJulia(julia1, 40, 1.5, 1.5)
Noise Line
draws some random line and circles based on perlin noise
.
- n: The number of random line.
nl := arts.NewNoiseLine(1000)
Ocean Fish
draws an ocean and some fishes in the center.
- lineNum: The number of the line used to simulate the ocean wave.
- fishNum: The number of fish.
o := arts.NewOceanFish(100, 8)
Circle loop2
draws a circle composed by colored circles.
- depth: Control the number of circles.
cl := arts.NewCircleLoop2(7)
Pixel Hole
draws a hole with colored dots.
- dotN: The number of point in each iteration.
ph := arts.NewPixelHole(60)
- dotsN: The number of dots wave in the image.
d := arts.NewDotsWave(300)
- circleNum: The number of the circle in the image.
cm := arts.NewCircleMove(1000)
- dotsN: The number of dot.
- colorMin: The minimum color.
- colorMax: The maximum color.
- n: The number of the curve.
y := arts.NewYarn(2000)
- circleN: The number of the circle.
- density: Control the density of the circle.
- circleGap: Identify the gap between two circles.
b := arts.NewBlackHole(200, 400, 0.01)
- seg:
cc := arts.NewColorCanve(5)
Warping, or domain distortion is a very common technique in computer graphics for generating procedural textures and geometry. It's often used to pinch an object, stretch it, twist it, bend it, make it thicker or apply any deformation you want.
- scale: Control the noise generator.
- xOffset: Control the noise generator.
- yOffset: Control the noise generator.
- fn: A function to mapping the
noise
to color.
d := arts.NewDomainWrap(0.01, 4, 8, cmap)
- circleN: The number of circle on this image.
- dotsN: The number of dots in each circle.
- colorMin: The minimum color.
- colorMax: The maximum color.
pp := arts.NewPerlinPerls(10, 200, 40, 80