Update examples
This commit is contained in:
parent
5830da3d87
commit
c61ef10346
6 changed files with 61 additions and 59 deletions
|
@ -12,8 +12,8 @@ func main() {
|
|||
|
||||
rl.InitWindow(int32(screenWidth), int32(screenHeight), "raylib [textures] example - procedural images generation")
|
||||
|
||||
verticalGradient := rl.GenImageGradientV(screenWidth, screenHeight, rl.Red, rl.Blue)
|
||||
horizontalGradient := rl.GenImageGradientH(screenWidth, screenHeight, rl.Red, rl.Blue)
|
||||
verticalGradient := rl.GenImageGradientLinear(screenWidth, screenHeight, 0, rl.Red, rl.Blue)
|
||||
horizontalGradient := rl.GenImageGradientLinear(screenWidth, screenHeight, 90, rl.Red, rl.Blue)
|
||||
radialGradient := rl.GenImageGradientRadial(screenWidth, screenHeight, 0, rl.White, rl.Black)
|
||||
checked := rl.GenImageChecked(screenWidth, screenHeight, 32, 32, rl.Red, rl.Blue)
|
||||
whiteNoise := rl.GenImageWhiteNoise(screenWidth, screenHeight, 0.5)
|
||||
|
|
|
@ -172,7 +172,7 @@ func drawTexturedCurve() {
|
|||
func drawCurve() {
|
||||
|
||||
if showCurve {
|
||||
rl.DrawLineBezierCubic(curveStartPos, curveEndPos, curveStartPosTangent, curveEndPosTangent, 2, rl.Blue)
|
||||
rl.DrawSplineSegmentBezierCubic(curveStartPos, curveEndPos, curveStartPosTangent, curveEndPosTangent, 2, rl.Blue)
|
||||
}
|
||||
rl.DrawLineV(curveStartPos, curveStartPosTangent, rl.SkyBlue)
|
||||
rl.DrawLineV(curveEndPos, curveEndPosTangent, rl.Purple)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue