Comments (9)
Yellow image here using the latest commit from master:
from red.
I think we can improve VID so that the image gets colored using the provided color.
from red.
The rendering order of the facets is as follows:
color
-> image
-> text
The white image covers the background color in this issue, that why you cannot see the color.
from red.
view [img: image yellow with [image: #(none)] button [img/image: none]]
If you wanted no image to begin with, should with
work here? Clearing the image does correctly reveal the color.
from red.
Hmmm. I just pulled and rebuilt, and I still get a white image. Or are you saying users need to patch the style to get this behavior, as it doesn't do that by default?
from red.
Are you sure? Using the latest View build, I get a yellow result.
from red.
Just DL'd the static build and still get the white result by default. If I patch the style, as you have above, it works. I just didn't know if the new behavior should be by default.
>> about
Red 0.6.5 for Windows built 5-Apr-2024/8:22:23-06:00 commit #9516a4b
>> system/view/vid/styles/image
== [
default-actor: on-down
template: [type: 'base size: 100x100]
init: [unless image [image: make image! size]]
]
is the standard image style in the static build as well.
from red.
It seems I am the one who got it wrong. I kept using the code provided under "Expected behavior" as code for reproducing the issue...
from red.
This is better then my previous suggestion:
system/view/VID/styles/image: [
default-actor: on-down
template: [type: 'base size: 100x100]
init: [unless image [image: make image! reduce [size any [color white]]]]
]
from red.
Related Issues (20)
- Custom panel actors completely overwrite the actors object. HOT 4
- MSDOS support, really? (Feature Request/Fix, or should rename the --target) HOT 6
- Words fail to stay local in blocks evaluated with loop block evaluator: repeat HOT 3
- Words fail to stay local in blocks evaluated with loop block evaluators: foreach HOT 3
- value? fails HOT 8
- WISH: DRAW command PEN should have option DOTTED HOT 3
- Point to point conversions are buggy HOT 1
- VID area blocked and slow on big text HOT 8
- New fix for area does not work with WRAP HOT 13
- `round/even/to` doesn't work on `money!`
- 16-bit vector! math error HOT 1
- [Regression] CLI console can't be compiled with the native GUI backend
- VID on Ubuntu doesn't right align HOT 2
- Bases draw slowly since issue #5253 HOT 2
- [Regression] More aftershocks from #5253 HOT 6
- [Regression] CLI console cannot be built for FreeBSD target HOT 1
- Cortex XDR has blocked a malicious activity when trying to run https://static.red-lang.org/dl/auto/win/red-view-23jun24-583744106.exe HOT 2
- [View] `alt` flag is unreliable HOT 1
- case, case/all and their returning values HOT 5
- [View] `down` flag discrepancies during clicks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from red.