Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
db481e72
Commit
db481e72
authored
10 years ago
by
TriBlade9
Committed by
Craig Robbins
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added ratio argument to colorize, removed the weird alpha-based ratio.
parent
60d74512
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/lua_api.txt
+3
-2
3 additions, 2 deletions
doc/lua_api.txt
src/tile.cpp
+134
-96
134 additions, 96 deletions
src/tile.cpp
with
137 additions
and
98 deletions
doc/lua_api.txt
+
3
−
2
View file @
db481e72
...
...
@@ -337,9 +337,11 @@ Apply a mask to the base image.
The mask is applied using binary AND.
#### `[colorize:<color>`
#### `[colorize:<color>
:<ratio>
`
Colorize the textures with the given color.
`<color>` is specified as a `ColorString`.
`<ratio>` is an int ranging from 0 to 255, and specifies how much of the
color to apply. If ommitted, the alpha will be used.
Sounds
------
...
...
@@ -3259,4 +3261,3 @@ Definition tables
playername = "singleplayer"
-- ^ Playername is optional, if specified spawns particle only on the player's client
}
This diff is collapsed.
Click to expand it.
src/tile.cpp
+
134
−
96
View file @
db481e72
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment