Got text working.

This commit is contained in:
Unknown
2018-03-29 14:30:42 -04:00
parent ff38043a10
commit 669d1182f4
9 changed files with 87 additions and 71 deletions

43
Variables.go Normal file
View File

@@ -0,0 +1,43 @@
package ps
import (
"fmt"
)
var Colors map[string]Color = map[string]Color{
"Gray": &RGB{128, 128, 128},
"White": &RGB{255, 255, 255},
}
// ModeEnum determines how aggressively the package will attempt to sync with Photoshop.
type ModeEnum int
// Holds the current mode.
var Mode ModeEnum
// Fast mode never checks layers before returning.
const Fast ModeEnum = 2
// Normal Mode Always checks to see if layers are up to date
// before returning them.
const Normal ModeEnum = 0
// Safe Mode Always loads the document from scratch. (Very Slow)
const Safe ModeEnum = 1
// PSSaveOptions is an enum for options when closing a document.
type PSSaveOptions int
func (p *PSSaveOptions) String() string {
return fmt.Sprint("", *p)
}
// PSSaveChanges saves changes before closing documents.
const PSSaveChanges PSSaveOptions = 1
// PSDoNotSaveChanges closes documents without saving.
const PSDoNotSaveChanges PSSaveOptions = 2
// PSPromptToSaveChanges prompts the user whether to save each
// document before closing it.
const PSPromptToSaveChanges PSSaveOptions = 3