diff options
author | lawl <github@dumbinter.net> | 2022-01-06 10:44:13 +0200 |
---|---|---|
committer | lawl <github@dumbinter.net> | 2022-01-06 16:04:34 +0530 |
commit | 8c34658b64f1efeab501bef57d2bfa9579fe34e2 (patch) | |
tree | 3fef93871214bc85c89ffcd04c6782c8aa3862ce /vendor/golang.org/x/image/draw/draw_go117.go | |
parent | 38787e4195f2a34d7ec4421caf17cb99bc31fa2b (diff) | |
download | noisetorch-8c34658b64f1efeab501bef57d2bfa9579fe34e2.tar.gz noisetorch-8c34658b64f1efeab501bef57d2bfa9579fe34e2.zip |
Chore: Upgrade nucular GUI dependency
Diffstat (limited to 'vendor/golang.org/x/image/draw/draw_go117.go')
-rw-r--r-- | vendor/golang.org/x/image/draw/draw_go117.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/golang.org/x/image/draw/draw_go117.go b/vendor/golang.org/x/image/draw/draw_go117.go new file mode 100644 index 0000000..fa83648 --- /dev/null +++ b/vendor/golang.org/x/image/draw/draw_go117.go @@ -0,0 +1,27 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build go1.17 +// +build go1.17 + +package draw + +import ( + "image/draw" +) + +// The package documentation, in draw.go, gives the intent of this package: +// +// This package is a superset of and a drop-in replacement for the +// image/draw package in the standard library. +// +// "Drop-in replacement" means that we use type aliases in this file. +// +// TODO: move the type aliases to draw.go once Go 1.16 is no longer supported. + +// RGBA64Image extends both the Image and image.RGBA64Image interfaces with a +// SetRGBA64 method to change a single pixel. SetRGBA64 is equivalent to +// calling Set, but it can avoid allocations from converting concrete color +// types to the color.Color interface type. +type RGBA64Image = draw.RGBA64Image |