-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background image #2906
base: master
Are you sure you want to change the base?
Background image #2906
Conversation
|
// import { createCanvas, loadImage } from "canvas"; | ||
import { Canvas, loadImage, Image } from "skia-canvas"; | ||
|
||
class NinePatch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diegomura I have created background image with ninepatch that automatically create background canvas with shadow for background image we have to just pass image for that and it look lile below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. That looks nice. But why is it related to background image? Isn't that more like box shadow? I'm a bit confused in that sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diegomura Yes that is box shadow but we have create image look like box shadow and provide that image as background so that's why it's related to background image.
"cross-fetch": "^3.1.5", | ||
"emoji-regex": "^10.3.0", | ||
"queue": "^6.0.1", | ||
"skia-canvas": "https://github.com/samizdatco/skia-canvas/releases/download/v1.0.1/skia-canvas-v1.0.1-linux-x64-glibc.tar.gz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't this on npm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diegomura Before it available on npm but latest version is still not available on npm and it's recommendation to use this version from github once it available in npm we will update to get from npm.
Here is release link and deprication warning for not use via npm
https://github.com/samizdatco/skia-canvas/releases
No description provided.