Commit graph

83 commits

Author SHA1 Message Date
Mike Ward
d7550c5c02
examples: over print in digital_rain.v, to simulate the custom font used in the movie effect (#21846) 2024-07-12 01:41:15 +03:00
Delyan Angelov
2cde320eee
examples: add keyboard shortcuts label to digital_rain.v 2024-07-11 15:58:59 +03:00
Mike Ward
304aa9f687
examples: add a gg example - digital_rain.v (#21841) 2024-07-11 08:53:27 +03:00
Delyan Angelov
56d2ba6281
examples: add a glow effect to spirograph.v 2024-07-05 14:07:16 +03:00
Delyan Angelov
07c1c51036
examples: add slow rotation to spirograph.v, use a brighter color for the instructions 2024-07-05 11:52:41 +03:00
Delyan Angelov
811ac125fa
examples: add an animated spirograph.v using gg 2024-07-05 11:29:47 +03:00
shadow
c9c41af172
examples: add gg/fire.v (#21784) 2024-07-02 11:04:00 +03:00
Delyan Angelov
4c42fe3420
gg: add Context.draw_cubic_bezier_recursive/2 and Context.draw_cubic_bezier_recursive_scalar/9 (#21749) 2024-06-28 08:30:45 +03:00
Turiiya
00860ebc6b
examples: fix warnings about 0 assignments to reference fields (#21133) 2024-03-29 10:35:37 +02:00
cui fliter
78602846e5
all: fix typos in comments (#20963) 2024-03-04 18:41:55 +02:00
Delyan Angelov
c4180d4b06
examples: shrink examples/gg/minimal.v even more 2023-12-29 16:46:18 +02:00
Delyan Angelov
0b4a93c1c1
examples: add an even smaller gg usage example, demonstrating how to always show the builtin fps counter, and how to avoid importing gx 2023-12-29 16:31:01 +02:00
Yuyi_Hao
680b0d463a
example: add a path finding algorithm visualizer using gg (#20060) 2023-12-28 23:19:28 +02:00
Larpon
6d0d82dbb9
gg: fix overlapping slices in draw_slice_filled() (#20182) 2023-12-15 19:31:33 +02:00
Larpon
64e8139d46
examples, x: fix notice about assigning 0 to a reference field (#20115) 2023-12-07 22:34:53 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Larpon
3c68e78f32
sokol: fix usage of sokol sampler (#19527) 2023-10-07 21:05:30 +03:00
Delyan Angelov
6fc3a3d088
examples: add examples/gg/sample_count.v, showing the influence of the sample_count gg.Config parameter 2023-09-29 12:06:06 +03:00
Mustafa Ateş Uzun
8b0a1e2c71
gg, sokol.sapp: fix typo (.files_droped -> .files_dropped), add deprecation tags for the old value (#19190) 2023-08-21 22:32:24 +03:00
Delyan Angelov
e7af25ec14
examples: add examples/gg/many_thousands_of_circles.v, thanks to @xjunko, document how to use ctx.end(how:.passthru). (#18832) 2023-07-10 15:33:14 +03:00
Swastik Baranwal
d8cf65df1a
checker: only allow &u8 with byteptr and itself (#18146) 2023-05-11 18:28:49 +10:00
Alexander Medvednikov
d60ceb45cd gg: make create_image() return !Image 2023-03-29 19:04:41 +02:00
Tim Marston
26b9464f51
gg: setup ctx.window.user_data and ctx.user_data on ctx.run(), instead of in gg.new_context, to allow for embedding gg.Context in ui (#17169) 2023-01-31 18:22:20 +02:00
Delyan Angelov
68501677e3
ci: fix gg-regressions failure 2022-12-21 21:03:47 +02:00
Alexander Medvednikov
88e33a83de gg: fix draw_image on macos native; vcreate: vweb template 2022-12-21 19:33:37 +03:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Junko
5bb058e35b
gg: revamp the Context pipeline for more effects, implement an additive effect (#16394) 2022-11-12 09:39:18 +02:00
Alexander Medvednikov
e81e0ac708 fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
Makhnev Petr
2e8b9e3b92
v fmt: fix extra space for anon struct (#16131) 2022-10-21 10:38:19 +03:00
Delyan Angelov
fa20d797a5 Revert "examples: increase the window size of drag_n_drop.v a little (test CI)"
This reverts commit 8fc166d5a3.
2022-10-10 10:39:58 +03:00
Delyan Angelov
8fc166d5a3
examples: increase the window size of drag_n_drop.v a little (test CI) 2022-10-10 04:04:27 +03:00
Swastik Baranwal
b584e1df98
checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932) 2022-10-02 22:39:11 +03:00
Larpon
816e9319d7
cgen: remove the need for [console] for gg or ui programs on windows (#15912) 2022-09-29 15:02:50 +03:00
Tim Marston
089e89f865
gg: improve arc/slice drawing (#15856) 2022-09-25 15:22:10 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
Delyan Angelov
cae7bc9a9a
examples: add examples/gg/rotating_textured_quad.v 2022-08-14 09:45:25 +03:00
Mehmet Ali
12d57e8e7b
sokol: add mouse cursor support (#15111) 2022-07-18 09:44:48 +03:00
Alexander Medvednikov
cb60392302 examples: fix unsafe 0 2022-06-26 07:12:15 +03:00
Delyan Angelov
ea71ea3ec1
examples: speed up mandelbrot.v a little, increase iterations/details too 2022-06-09 20:10:00 +03:00
Delyan Angelov
64a686f41f examples: speed up mandelbrot.v by using a constant size thread pool, processing smaller chunks 2022-05-22 11:12:16 +03:00
Subhomoy Haldar
114a341f5f
rand: simplify rand.PRNG, move to optional types for error handling (#13570) 2022-02-23 12:36:14 +02:00
Wertzui123
22c21e62a1
examples: fix the mandelbrot set example on Windows (#13251) 2022-01-23 00:45:27 +02:00
Larpon
7fbd856bf8
os: add font module, move from gg (#13144) 2022-01-13 12:16:18 +02:00
Benjamin Stigsen
546c388b02
gg: renaming drawing functions (#12913) 2021-12-23 13:31:25 +02:00
Larpon
047f059fb8
examples: use fontstash wrapper calls (#12718) 2021-12-06 23:39:43 +03:00
penguindark
89eb5425cd
examples: clean file path usage in the examples, move all the fonts in the common assets folder (#12736) 2021-12-06 09:53:46 +02:00
Delyan Angelov
852d85b3a9
gg: cleanup the minimal gg program more 2021-11-07 09:16:49 +02:00
Delyan Angelov
32b74dd348
gg: simplify the minimal gg application even more with context.user_data = context 2021-11-06 18:24:19 +02:00
Larpon
09cc0c7247
gg: use sgl.begin_points for pixels + improve pixels example (#12085) 2021-10-07 10:46:57 +03:00