Update examples

This commit is contained in:
Milan Nikolic 2023-11-10 10:57:07 +01:00
parent 5830da3d87
commit c61ef10346
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
6 changed files with 61 additions and 59 deletions

View file

@ -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)

View file

@ -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)