Comments (5)
yup good call! ill see which one fits the image best.
(also its Query<(Entity, Component)>
)
from bevy-website.
simple reproducible workflow
I just used inkscape to generate the svg:
- add the text using the text tool
- convert the text to a "path" using "Path -> Object To Path"
- assign the colors to the appropriate places
- resize the document to the context using "File -> Document Properties -> Resize page to content"
I prefer that over carbon because:
- The SVG carbon exports uses "svg text", which means the browser controls the font / falls back when a font doesn't exist. The current approach "bakes" the font into curves to avoid this problem.
- I'd want more control over the layout / spacing / color / margins than it provides.
Based on discussion in #documentation, the rough consensus was that the following example captured the spirit of Bevy's syntax well while being more approachable to beginners who don't know ECS jargon.
The point of the image was to quickly and minimally anchor ECS jargon into Bevy's syntax, not to introduce people to all of bevy's ecs features (ex: resources and query iteration). My preference would be for something more like this:
struct Component;
fn system(
query: Query<(Entity, &Component)>
) {
}
from bevy-website.
@cart do you have any preference/requirement for what font should be used for the image?
I'd like to make a PR, but just want to confirm any requirements for the visual aesthetic / appearence first.
from bevy-website.
Awesome! I'd like it to be as similar to the current one as possible (ex: same colors and same font). I believe the font is Fira Mono
from bevy-website.
Based on discussion in #documentation, the rough consensus was that the following example captured the spirit of Bevy's syntax well while being more approachable to beginners who don't know ECS jargon.
fn system(
players: Query<&Player>,
game: Res<Game>
) {
for player in players.iter() {
play(player, game);
}
}
We could do this, a rough adaptation of the existing code, as proposed in the first bit of this issue, or something in between. That's your judgement call though @cart.
If we end up wanting lots of this sort of thing or a simple reproducible workflow, it was mentioned that swapping to a tool like carbon.now.sh might be a good choice.
from bevy-website.
Related Issues (20)
- Missing link to "better scenes" document under what´s next? HOT 1
- Observer-hooks ordering isn't quite correct
- Migration guide should note that OnEnter states are now run before Startup
- Move notes about disabling logging from setup to book HOT 1
- Changelog and contributors tools can fail to find PRs HOT 1
- Migration guide: Event implements Component HOT 3
- Migration guide: incorrect recommendation for bevy_app feature HOT 2
- Bevy 0.14 news post has broken URL for Working Groups
- Automatically run pngcrush on example screenshots HOT 1
- Migration guide: Missing Plane3d -> InfinitePlane3d HOT 1
- Write about how to reduce Wasm binary size HOT 2
- Migration guide corrections HOT 3
- Recommend cranelift on macOS
- A broken URL which lead to a 404 in the quick-start learn page. HOT 1
- 0.13 to 0.14 migration guide didn't mention `insert_gizmo_group` HOT 3
- 0.13 to 0.14 Migration guide: Mention that RenderLayers is no longer Copy
- Many examples are missing screenshots HOT 2
- Examples link to old URL, causing multiple redirects HOT 2
- Bevy 0.14 release notes reference "custom_winit_event" example but it does not exist HOT 1
- The "Quick Start" is a bit of a mess
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 bevy-website.