This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.pascalwelsch.extensions | |
| import android.app.Activity | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.os.Build | |
| import android.os.Bundle | |
| /** | |
| * Extensions for simpler launching of Activities |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.dexode.fragment; | |
| import android.annotation.TargetApi; | |
| import android.app.Activity; | |
| import android.os.Build; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.support.v4.app.Fragment; | |
| import android.view.KeyEvent; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * THIS CLASS IS PROVIDED TO THE PUBLIC DOMAIN FOR FREE WITHOUT ANY | |
| * RESTRICTIONS OR ANY WARRANTY. | |
| */ | |
| import android.content.SharedPreferences; | |
| import android.content.SharedPreferences.Editor; | |
| import android.text.Editable; | |
| import android.text.Selection; | |
| import android.text.TextUtils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| struct AnimatingMaskedMeshView: View { | |
| let referenceDate: Date = .now | |
| @State private var mainPosition: CGPoint = .zero | |
| @State private var positions: [CGPoint] = [] | |
| private let blurRadius = 20.0 | |
| private let alphaThreshold = 0.875 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.example.app | |
| import android.content.Context | |
| import android.content.res.TypedArray | |
| import android.util.AttributeSet | |
| import android.widget.SeekBar | |
| import android.widget.TextView | |
| import androidx.preference.Preference | |
| import androidx.preference.PreferenceViewHolder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private struct GroundReflectionViewModifier: ViewModifier { | |
| let offsetY: CGFloat | |
| func body(content: Content) -> some View { | |
| content | |
| .background( | |
| content | |
| .mask( | |
| LinearGradient( | |
| gradient: Gradient(stops: [.init(color: .white, location: 0.0), .init(color: .clear, location: 0.6)]), | |
| startPoint: .bottom, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ContentView.swift | |
| // MeshGradientPlayground | |
| // | |
| // Created by Bill Richards on 6/14/24. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| import UniformTypeIdentifiers | |
| struct MeshGradientPoint: Identifiable { | |
| let id = UUID() | |
| var point: SIMD2<Float> | |
| var color: Color | |
| } | |
| struct ContentView: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Bitmap.Config; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| public class AnimatedGifEncoder { | |
| protected int width; // image size |
NewerOlder