Tom Lister
6d113e4b0d
ebitenutil: Use net/http at file_js.go ( #1296 )
...
Fixes #1154
2020-08-12 13:37:38 +09:00
Hajime Hoshi
780465b702
ebitenutil: Cache ColorM and reuse them at DrawRect
...
Fixes #1221
2020-06-29 22:35:28 +09:00
Hajime Hoshi
a1ac574a60
docs: Use 'Deprecated:' annotation
...
Fixes #1160
2020-05-19 01:50:55 +09:00
Hajime Hoshi
7ac6b0bfa3
Update dependencies
2020-03-31 03:32:38 +09:00
Tom Lister
3eea196c09
Fix missing js build tag ( #1088 )
...
Added js to build tags as suggested by @hajimehoshi
Fixes #1087
2020-02-21 20:24:25 +09:00
Hajime Hoshi
a449045ae2
ebitenutil: Cache sub images for debug print
2019-11-24 20:30:54 +09:00
Hajime Hoshi
fc42af208d
graphics: Use 1x1 image for empty images
...
This change leaves some empty images for DrawTriangles.
2019-07-30 23:11:06 +09:00
Hajime Hoshi
c52e043006
Add jsutil package for new API of Go 1.13
...
Audio part still cannot be compiled due to Oto.
Fixes #878
2019-06-15 00:49:57 +09:00
Hajime Hoshi
10fb5e33be
Replace GopherWasm with syscall/js
...
Fixes #857
2019-05-01 17:28:00 +09:00
eihigh
06edbffa79
docs: Change docs about go-bindata into rakyll/statik ( #840 )
...
go-bindata is not appropriate because no longer maintained.
2019-04-11 04:39:45 -04:00
Hajime Hoshi
710f56531f
graphics: Experimental: (*image.Image).SubImage
...
Fixes #722
2018-10-28 02:19:14 +09:00
Hajime Hoshi
17a47f80ef
ebitenutil: Fix comments
2018-09-22 05:23:26 +09:00
ryosama
f0d6853631
ebitenutil: Add the DebugPrintAt function ( #684 )
...
Fixes #683
2018-09-22 05:21:13 +09:00
Jake Bentvelzen
2938afd82a
ebitenutil: Fix OpenFile() so it works with wasm ( #674 )
...
Fixes #673
* Change to use `js.NewCallback`
* Use `uint8contentWrapper := js.Global().Get("Uint8Array").New(content)`, without this all the bytes in `data` stays zeroed. (TypedArray cannot use `set` on an ArrayBuffer)
2018-08-27 03:46:15 +09:00
Hajime Hoshi
cc17fbc166
Revert "Revert "ebitenutil: Use ColorM""
...
This reverts commit 7f46b46f66
.
2018-08-11 01:49:33 +09:00
Hajime Hoshi
7f46b46f66
Revert "ebitenutil: Use ColorM"
...
This reverts commit c6153de4f5
.
2018-08-06 01:44:31 +09:00
Hajime Hoshi
c6153de4f5
ebitenutil: Use ColorM
2018-07-26 12:47:39 +09:00
Hajime Hoshi
e99f2f9f69
ui: Rename TPS -> MaxTPS
2018-07-17 22:41:27 +09:00
Hajime Hoshi
16c6ab4d07
ui: Introduce DefaultTPS and deprecate FPS
2018-07-17 02:07:03 +09:00
Hajime Hoshi
d752408da3
Fix comments not to use the term 'this function'
2018-07-15 01:04:46 +09:00
Hajime Hoshi
8f12dfc496
Use js.TypedArray
...
This is still WIP. There is a rendering issue on Wasm.
2018-07-06 02:48:51 +09:00
Hajime Hoshi
6e51d31524
Use new GopherWasm API ( #634 )
...
I plan to merge this right after
https://github.com/gopherjs/gopherwasm/pull/3 is merged.
2018-06-30 00:02:15 +09:00
Hajime Hoshi
a9359e4ef8
Use GopherJS/GopherWasm
2018-06-24 16:10:24 +09:00
Hajime Hoshi
9b7f5f7273
ebitenutil: Use gopherwasm
2018-05-25 01:23:09 +09:00
Hajime Hoshi
3fa2beb502
Fix the do-not-edit comment https://golang.org/s/generatedcode
2018-04-20 00:54:33 -07:00
Hajime Hoshi
dbe990a060
Use the latest file2byteslice
2018-04-14 04:19:11 +09:00
Hajime Hoshi
a3bf8ebf83
ebitenutil: Add NewImageFromURL
2018-03-22 01:19:57 +09:00
Hajime Hoshi
c925b9de55
Use the latest file2byteslice
2018-03-14 01:57:52 +09:00
Hajime Hoshi
063153e41d
ebitenutil: Speed up to avoid copying by image.Rect
2018-03-11 21:39:22 +09:00
Hajime Hoshi
ef5de62780
Follow the standard comment rule
...
See https://golang.org/s/generatedcode
2018-03-08 02:47:59 +09:00
Hajime Hoshi
50be07355f
Revert "ebitenutil: Remove RecordScreenAsGIF implementation ( #500 )"
...
This reverts commit e3b99dd081
.
This is for backward compatibility
2018-03-05 12:07:18 +09:00
Hajime Hoshi
64abc79dc2
ebitenutil: Improve DebugPrint speed by not using color matrices
2018-03-05 02:08:44 +09:00
Hajime Hoshi
cdfee9fd74
ebitenutil: Refactoring
2018-03-04 22:52:56 +09:00
Hajime Hoshi
d9571c7e32
ebitenutil: Use the default filter
2018-03-04 22:45:47 +09:00
Hajime Hoshi
deed56f971
ebitenutil: Refactoring: Remove debugPrintRenderTarget
2018-02-27 03:13:58 +09:00
Hajime Hoshi
479bf18be6
ebitenutil: Fix comment ( #516 )
2018-02-26 23:03:33 +09:00
Hajime Hoshi
31ca968a14
ebitenutil: Add import image/png for backward compatibility
...
Fixes #518
2018-02-26 22:15:29 +09:00
Hajime Hoshi
e8d5c59e65
ebitenutil: Update doc
2018-02-20 02:02:30 +09:00
Hajime Hoshi
f5a283effd
ebitenutil: Add comments
2018-02-12 23:54:31 +09:00
Hajime Hoshi
fb7dc53031
ebitenutil: More agressive compression
2018-02-11 04:25:31 +09:00
Hajime Hoshi
0fefd59b24
ebitenutil: Use png2compressedrgba
2018-02-11 04:13:17 +09:00
Hajime Hoshi
e3b99dd081
ebitenutil: Remove RecordScreenAsGIF implementation ( #500 )
2018-02-11 03:36:45 +09:00
Hajime Hoshi
a8148b968c
ebitenutil: Remove importing image/png ( #500 )
2018-02-11 03:25:43 +09:00
Hajime Hoshi
ae04c2d680
ebitenutil: Refactoring
2018-02-11 01:56:13 +09:00
Hajime Hoshi
eb2f3cf4f9
ebitenutil: Remove go-bindata usage and use file2byteslice
...
Fixes #499
2018-02-09 02:46:33 +09:00
Hajime Hoshi
80e4ee0998
ebitenutil: Remove JoinStringsIntoPath; Always use slash for ebitenutil.OpenFile
...
#428
2018-01-29 23:38:11 +09:00
Hajime Hoshi
d1f9312242
ebitentutil: Fix wrong comments
2017-12-16 23:30:47 +09:00
Hajime Hoshi
10080d83e6
ebitentutil: Add JoinStringsIntoFilePath
...
Fixes #428
2017-12-16 23:29:35 +09:00
Hajime Hoshi
2eac4a3b88
ebitenutil: Rename file.go -> file_notjs.go
2017-12-16 22:33:58 +09:00
Hajime Hoshi
6bbf6c53ce
ebitenutil: Give up using linear filter for lines
...
The edges of a source texture would be unexpectable with linear filterling
2017-12-03 23:41:05 +09:00
Hajime Hoshi
95906e9630
ebitenutil: Bug fix: line should use linear filter
2017-12-03 23:12:02 +09:00
Hajime Hoshi
d832f1e3cb
ebitenutil: emptyImage should use nearest filter
2017-12-03 23:08:58 +09:00
Hajime Hoshi
3cf5ca4df3
doc: Improve comments
2017-10-08 03:14:33 +09:00
Hajime Hoshi
d1333e92a5
doc: Improve comments
2017-10-01 20:48:28 +09:00
Hajime Hoshi
93173506f5
ebitenutil: English
2017-08-14 00:45:10 +09:00
Hajime Hoshi
abd8cb7759
ebitenutil: Add DrawLine and DrawRect
...
Add new APIs DrawLine and DrawRect mainly for debugging or prototyping purpose. Also add examples/shapes.
2017-08-14 00:16:32 +09:00
Hajime Hoshi
b66ead56c8
ebitenutil: Remove debugPrintImageParts
2017-05-28 03:15:55 +09:00
Hajime Hoshi
691db07678
ebitenutil: Use SourceRect ( #277 )
2017-05-28 03:10:32 +09:00
Hajime Hoshi
b409631515
Add FreeBSD support ( #352 )
2017-05-11 19:09:13 +09:00
Hajime Hoshi
283c8d41ca
ebitenutil: DebugText always returns nil ( #331 )
2017-03-04 12:02:41 +09:00
Hajime Hoshi
0ef1e61d55
mobile: Fix iOS tag usages ( #310 )
2017-01-26 01:32:33 +09:00
Hajime Hoshi
e2fd9b9e7e
go generate
2016-10-21 00:02:50 +09:00
Hajime Hoshi
30b521f3b8
Add error checks
2016-08-03 01:02:05 +09:00
Hajime Hoshi
c7106f595c
Add error checks
2016-08-02 02:26:44 +09:00
Hajime Hoshi
dd9918d64e
Add comments
2016-08-02 01:47:25 +09:00
Hajime Hoshi
af53988a17
ebitenutil: Refactoring
2016-07-31 22:02:56 +09:00
Hajime Hoshi
134722f8f7
ebitenutil: Fix a comment
2016-06-25 03:43:03 +09:00
Hajime Hoshi
7d99ce35ba
ebitenutil: Seal OpenFile on mobiles
2016-06-25 03:39:28 +09:00
Hajime Hoshi
fdfc44281f
gofmt -s
2016-05-14 00:25:11 +09:00
Hajime Hoshi
64a66c57c0
examples/keyboard: Generate the image without Ebiten ( #210 )
2016-05-08 16:30:48 +09:00
Hajime Hoshi
07968abfd6
ebitenutil: Add ReadSeekCloser and use this
2016-03-29 23:52:11 +09:00
Hajime Hoshi
b1f856a0e0
Add FPS const
2016-03-13 04:57:31 +09:00
Hajime Hoshi
13461aa455
ebitenutil: Add OpenFile
2016-03-07 01:42:01 +09:00
Hajime Hoshi
7ab04167d7
keyboard: Bug fix: Image.DrawLine no longer exists
2016-02-16 23:24:17 +09:00
Hajime Hoshi
bca600a093
Update for the latest GopherJS (use *js.Object instead of js.Object)
2015-03-01 01:26:16 +09:00
Hajime Hoshi
16e5b3f37e
ebitenutil: Modify error message on load resources (JS)
2015-02-02 02:58:09 +09:00
Hajime Hoshi
2aa6ebb471
Move internal/assets -> ebitenutil/internal/assets
2015-01-26 22:09:47 +09:00
Hajime Hoshi
f8c0fff6a7
example: Bug fix: the path from runtime.Caller is not useful on JavaScript ( #99 )
2015-01-19 22:09:08 +09:00
Hajime Hoshi
15c7341816
Replace .on* = func -> addEventListener = func
2015-01-10 15:51:07 +09:00
Hajime Hoshi
0ab90197a3
Implement IsMouseButtonPressed / CursorPosition in JS ( #53 )
2015-01-06 23:41:03 +09:00
Hajime Hoshi
f697501531
Use ImageParts
2015-01-05 10:08:00 +09:00
Hajime Hoshi
ab2b884c49
Bug fix: responseType must be set after opening
2015-01-03 18:40:01 +09:00
Hajime Hoshi
bd4434c62c
Add loadimage_js.go
2015-01-02 16:48:07 +09:00
Hajime Hoshi
f0277727d1
Refactoring
2014-12-29 13:39:35 +09:00
Hajime Hoshi
47214fb572
Improve animation GIF color
2014-12-29 01:57:39 +09:00
Hajime Hoshi
22035e79fe
Reduce panics ( #16 )
2014-12-29 00:21:40 +09:00
Hajime Hoshi
189445a472
Reduce image size
2014-12-28 15:26:12 +09:00
Hajime Hoshi
89a3297e74
Further optimization for RecordScreenAsGIF
2014-12-28 04:10:47 +09:00
Hajime Hoshi
ed777b7e94
Speed up: RecordScreenAsGIF
2014-12-28 03:54:07 +09:00
Hajime Hoshi
4bf4b0c264
Add example for RecordScreenAsGIF
2014-12-28 00:52:24 +09:00
Hajime Hoshi
325e05259a
Introduce ImagePart again
2014-12-27 17:37:31 +09:00
Hajime Hoshi
7849a68cd0
Remove DrawImageAt
2014-12-26 23:01:47 +09:00
Hajime Hoshi
ffab448d40
Rename ColorGeometry -> ColorM, GeometryMatrix -> GeoM ( #27 )
2014-12-26 22:50:25 +09:00
Hajime Hoshi
ec6dc4b7ec
Use value-type values for some of DrawImageOption's members
2014-12-26 11:29:44 +09:00
Hajime Hoshi
843b0d8621
Remove the struct DrawImageAt; Add a method (*Image).DrawImageAt
2014-12-26 03:46:25 +09:00
Hajime Hoshi
cdc84567ca
Rename At -> DrawImageAt
2014-12-26 03:00:40 +09:00
Hajime Hoshi
494d07387d
Remove DrawImage.+ function ( #41 )
2014-12-24 23:17:58 +09:00
Hajime Hoshi
373371d1b2
Change license comments style to use magic comments (magic comments like +build should be placed before a general comment)
2014-12-24 11:04:10 +09:00
Hajime Hoshi
6cb8dac860
Add DrawImage* functions ( #40 )
2014-12-24 03:05:45 +09:00
Hajime Hoshi
604c0d095f
Remove ImagePart
2014-12-24 02:04:56 +09:00