-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Problem
Warning: long text
My idea is: create mod with nodebox-shaped "signs"/posters (with picture), where will be universal register function and each sign could have texture with different resolution and different ratio of width and height. It will use square texture, where will be main picture and any one other color around the main picture. And the nodebox for each poster etc. will have width and height of defined side specific for main object in picture ("island" in one specific color) and some fixed thickness.
For example, mod creator defines for it in function "sea color" #aa0034ff. Thickness will be fixed as 1/20.
Nodebox will be (-left_offset/width_resolution, 0.5-thickness, -down_offset/height_resolution, right_offset/width_resolution, upper_offset/height_resolution, 0.5).
Poster 1 will have 128 x 128 px, "sea color" will be #aa0034ff. "Island" part of picture with different colors will be 11 px from left, 12 px from right, 5 px from down and 50 px from upper edge.
Poster 2 ...
Poster 3 ...
Solutions
- Add functions for detect colors in texture from edges:
detect_texture_color(#rrggbbaa, "texture_name.png", "up / down / left / right")
OR
Alternatives
- create specific nodebox type ("texture_defined") with specification of texture name and "sea" color and last dimension
OR
3) create specific drawtype ("posterlike") with specification of "sea" color and last dimension
OR
4) as actually, write it everytime directly without detection of colors in texture
Additional context
No response