Исходник Отдельная функция для цвета (expensive 3.1)

Забаненный
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
852
Реакции[?]
7
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

Код:
package dev.ctrax123.functions.impl.visual;

import dev.ctrax123.functions.api.Category;
import dev.ctrax123.functions.api.Function;
import dev.ctrax123.functions.api.FunctionRegister;
import dev.ctrax123.functions.settings.impl.BooleanSetting;
import dev.ctrax123.functions.settings.impl.ModeSetting;
import dev.ctrax123.functions.settings.impl.SliderSetting;
import dev.ctrax123.utils.render.ColorUtils;

@FunctionRegister(name = "Theme", type = Category.VISUAL)
public class Theme extends Function {


    public static final ModeSetting THEME = new ModeSetting("Выбор Цвета",
            "Nursultan",
            "Nursultan",
            "НУРИК",
            "Морской",
            "Малиновый",
            "Черничный",
            "Необычный",
            "Огненный",
            "Прикольный",
            "Новогодний");

    public static final SliderSetting speedColors = new SliderSetting("Скорость цвета", 10, 0, 20, 1f);

    private final BooleanSetting openColor = new BooleanSetting("Открыть Цветовую панель", false);

    public Theme() {
        toggle();
        addSettings(THEME, speedColors, openColor);
    }
    public static int getColor(int index) {
        return Theme.Temka(index + 16);
    }

    public static int getColor(int index, float mult) {
        return Theme.Temka((int) (index * mult + 16) + 16);
    }

    public static int getColor(int firstColor, int secondColor, int index, float mult) {
        return ColorUtils.gradient(firstColor, secondColor, (int) (index * mult), speedColors.get().intValue());
    }

    public static int Temka(int index) {

        if (THEME.is("Nursultan")) {
            return ColorUtils.gradient(ColorUtils.rgb(0, 255, 255),
                    ColorUtils.rgb(0, 0, 255), index + 16, 15);
        }
        if (THEME.is("НУРИК")) {
            return ColorUtils.gradient(ColorUtils.rgb(255, 255, 0),
                    ColorUtils.rgb(255, 0, 255), index + 16, 15);
        }
        if (THEME.is("Морской")) {
            return ColorUtils.gradient(ColorUtils.rgb(5, 63, 111),
                    ColorUtils.rgb(133, 183, 246), index + 16, 15);
        }
        if (THEME.is("Малиновый")) {
            return ColorUtils.gradient(ColorUtils.rgb(109, 10, 40),
                    ColorUtils.rgb(239, 96, 136), index + 16, 15);
        }
        if (THEME.is("Черничный")) {
            return ColorUtils.gradient(ColorUtils.rgb(78, 5, 127),
                    ColorUtils.rgb(193, 140, 234), index + 16, 15);
        }
        if (THEME.is("Необычный")) {
            return ColorUtils.gradient(ColorUtils.rgb(243, 160, 232),
                    ColorUtils.rgb(171, 250, 243), index + 16, 15);
        }
        if (THEME.is("Огненный")) {
            return ColorUtils.gradient(ColorUtils.rgb(194, 21, 0),
                    ColorUtils.rgb(255, 197, 0), index + 16, 15);
        }
        if (THEME.is("Прикольный")) {
            return ColorUtils.gradient(ColorUtils.rgb(82, 241, 171),
                    ColorUtils.rgb(66, 172, 245), index + 16, 15);
        }
        if (THEME.is("Новогодний")) {
            return ColorUtils.gradient(ColorUtils.rgb(190, 5, 60),
                    ColorUtils.rgb(255, 255, 255), index + 16, 15);
        }


        return index * 16;
    }
}
получения цвета Theme.getColor(0)
SS:1721241216874.png
возможно скоро солью Цветовую панель как в нурике
 
Начинающий
Статус
Оффлайн
Регистрация
20 Апр 2021
Сообщения
1,022
Реакции[?]
18
Поинты[?]
22K
Код:
package dev.ctrax123.functions.impl.visual;

import dev.ctrax123.functions.api.Category;
import dev.ctrax123.functions.api.Function;
import dev.ctrax123.functions.api.FunctionRegister;
import dev.ctrax123.functions.settings.impl.BooleanSetting;
import dev.ctrax123.functions.settings.impl.ModeSetting;
import dev.ctrax123.functions.settings.impl.SliderSetting;
import dev.ctrax123.utils.render.ColorUtils;

@FunctionRegister(name = "Theme", type = Category.VISUAL)
public class Theme extends Function {


    public static final ModeSetting THEME = new ModeSetting("Выбор Цвета",
            "Nursultan",
            "Nursultan",
            "НУРИК",
            "Морской",
            "Малиновый",
            "Черничный",
            "Необычный",
            "Огненный",
            "Прикольный",
            "Новогодний");

    public static final SliderSetting speedColors = new SliderSetting("Скорость цвета", 10, 0, 20, 1f);

    private final BooleanSetting openColor = new BooleanSetting("Открыть Цветовую панель", false);

    public Theme() {
        toggle();
        addSettings(THEME, speedColors, openColor);
    }
    public static int getColor(int index) {
        return Theme.Temka(index + 16);
    }

    public static int getColor(int index, float mult) {
        return Theme.Temka((int) (index * mult + 16) + 16);
    }

    public static int getColor(int firstColor, int secondColor, int index, float mult) {
        return ColorUtils.gradient(firstColor, secondColor, (int) (index * mult), speedColors.get().intValue());
    }

    public static int Temka(int index) {

        if (THEME.is("Nursultan")) {
            return ColorUtils.gradient(ColorUtils.rgb(0, 255, 255),
                    ColorUtils.rgb(0, 0, 255), index + 16, 15);
        }
        if (THEME.is("НУРИК")) {
            return ColorUtils.gradient(ColorUtils.rgb(255, 255, 0),
                    ColorUtils.rgb(255, 0, 255), index + 16, 15);
        }
        if (THEME.is("Морской")) {
            return ColorUtils.gradient(ColorUtils.rgb(5, 63, 111),
                    ColorUtils.rgb(133, 183, 246), index + 16, 15);
        }
        if (THEME.is("Малиновый")) {
            return ColorUtils.gradient(ColorUtils.rgb(109, 10, 40),
                    ColorUtils.rgb(239, 96, 136), index + 16, 15);
        }
        if (THEME.is("Черничный")) {
            return ColorUtils.gradient(ColorUtils.rgb(78, 5, 127),
                    ColorUtils.rgb(193, 140, 234), index + 16, 15);
        }
        if (THEME.is("Необычный")) {
            return ColorUtils.gradient(ColorUtils.rgb(243, 160, 232),
                    ColorUtils.rgb(171, 250, 243), index + 16, 15);
        }
        if (THEME.is("Огненный")) {
            return ColorUtils.gradient(ColorUtils.rgb(194, 21, 0),
                    ColorUtils.rgb(255, 197, 0), index + 16, 15);
        }
        if (THEME.is("Прикольный")) {
            return ColorUtils.gradient(ColorUtils.rgb(82, 241, 171),
                    ColorUtils.rgb(66, 172, 245), index + 16, 15);
        }
        if (THEME.is("Новогодний")) {
            return ColorUtils.gradient(ColorUtils.rgb(190, 5, 60),
                    ColorUtils.rgb(255, 255, 255), index + 16, 15);
        }


        return index * 16;
    }
}
получения цвета Theme.getColor(0)
SS:Посмотреть вложение 281428
возможно скоро солью Цветовую панель как в нурике
🍿 🍿 🍿
/deltheard
 
Начинающий
Статус
Оффлайн
Регистрация
27 Авг 2022
Сообщения
58
Реакции[?]
0
Поинты[?]
1K
Код:
package dev.ctrax123.functions.impl.visual;

import dev.ctrax123.functions.api.Category;
import dev.ctrax123.functions.api.Function;
import dev.ctrax123.functions.api.FunctionRegister;
import dev.ctrax123.functions.settings.impl.BooleanSetting;
import dev.ctrax123.functions.settings.impl.ModeSetting;
import dev.ctrax123.functions.settings.impl.SliderSetting;
import dev.ctrax123.utils.render.ColorUtils;

@FunctionRegister(name = "Theme", type = Category.VISUAL)
public class Theme extends Function {


    public static final ModeSetting THEME = new ModeSetting("Выбор Цвета",
            "Nursultan",
            "Nursultan",
            "НУРИК",
            "Морской",
            "Малиновый",
            "Черничный",
            "Необычный",
            "Огненный",
            "Прикольный",
            "Новогодний");

    public static final SliderSetting speedColors = new SliderSetting("Скорость цвета", 10, 0, 20, 1f);

    private final BooleanSetting openColor = new BooleanSetting("Открыть Цветовую панель", false);

    public Theme() {
        toggle();
        addSettings(THEME, speedColors, openColor);
    }
    public static int getColor(int index) {
        return Theme.Temka(index + 16);
    }

    public static int getColor(int index, float mult) {
        return Theme.Temka((int) (index * mult + 16) + 16);
    }

    public static int getColor(int firstColor, int secondColor, int index, float mult) {
        return ColorUtils.gradient(firstColor, secondColor, (int) (index * mult), speedColors.get().intValue());
    }

    public static int Temka(int index) {

        if (THEME.is("Nursultan")) {
            return ColorUtils.gradient(ColorUtils.rgb(0, 255, 255),
                    ColorUtils.rgb(0, 0, 255), index + 16, 15);
        }
        if (THEME.is("НУРИК")) {
            return ColorUtils.gradient(ColorUtils.rgb(255, 255, 0),
                    ColorUtils.rgb(255, 0, 255), index + 16, 15);
        }
        if (THEME.is("Морской")) {
            return ColorUtils.gradient(ColorUtils.rgb(5, 63, 111),
                    ColorUtils.rgb(133, 183, 246), index + 16, 15);
        }
        if (THEME.is("Малиновый")) {
            return ColorUtils.gradient(ColorUtils.rgb(109, 10, 40),
                    ColorUtils.rgb(239, 96, 136), index + 16, 15);
        }
        if (THEME.is("Черничный")) {
            return ColorUtils.gradient(ColorUtils.rgb(78, 5, 127),
                    ColorUtils.rgb(193, 140, 234), index + 16, 15);
        }
        if (THEME.is("Необычный")) {
            return ColorUtils.gradient(ColorUtils.rgb(243, 160, 232),
                    ColorUtils.rgb(171, 250, 243), index + 16, 15);
        }
        if (THEME.is("Огненный")) {
            return ColorUtils.gradient(ColorUtils.rgb(194, 21, 0),
                    ColorUtils.rgb(255, 197, 0), index + 16, 15);
        }
        if (THEME.is("Прикольный")) {
            return ColorUtils.gradient(ColorUtils.rgb(82, 241, 171),
                    ColorUtils.rgb(66, 172, 245), index + 16, 15);
        }
        if (THEME.is("Новогодний")) {
            return ColorUtils.gradient(ColorUtils.rgb(190, 5, 60),
                    ColorUtils.rgb(255, 255, 255), index + 16, 15);
        }


        return index * 16;
    }
}
получения цвета Theme.getColor(0)
SS:Посмотреть вложение 281428
возможно скоро солью Цветовую панель как в нурике
ГОДНО Я ТЕБЕ РУКИ ЦЕЛОВАЛ :seemsgood: :seemsgood: :seemsgood: :seemsgood:
 
Забаненный
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
852
Реакции[?]
7
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Начинающий
Статус
Оффлайн
Регистрация
14 Окт 2022
Сообщения
22
Реакции[?]
0
Поинты[?]
0
Сделай новый просто Setting и всё, зачем делать функцию?
 
Начинающий
Статус
Оффлайн
Регистрация
13 Июл 2023
Сообщения
28
Реакции[?]
0
Поинты[?]
0
Код:
package dev.ctrax123.functions.impl.visual;

import dev.ctrax123.functions.api.Category;
import dev.ctrax123.functions.api.Function;
import dev.ctrax123.functions.api.FunctionRegister;
import dev.ctrax123.functions.settings.impl.BooleanSetting;
import dev.ctrax123.functions.settings.impl.ModeSetting;
import dev.ctrax123.functions.settings.impl.SliderSetting;
import dev.ctrax123.utils.render.ColorUtils;

@FunctionRegister(name = "Theme", type = Category.VISUAL)
public class Theme extends Function {


    public static final ModeSetting THEME = new ModeSetting("Выбор Цвета",
            "Nursultan",
            "Nursultan",
            "НУРИК",
            "Морской",
            "Малиновый",
            "Черничный",
            "Необычный",
            "Огненный",
            "Прикольный",
            "Новогодний");

    public static final SliderSetting speedColors = new SliderSetting("Скорость цвета", 10, 0, 20, 1f);

    private final BooleanSetting openColor = new BooleanSetting("Открыть Цветовую панель", false);

    public Theme() {
        toggle();
        addSettings(THEME, speedColors, openColor);
    }
    public static int getColor(int index) {
        return Theme.Temka(index + 16);
    }

    public static int getColor(int index, float mult) {
        return Theme.Temka((int) (index * mult + 16) + 16);
    }

    public static int getColor(int firstColor, int secondColor, int index, float mult) {
        return ColorUtils.gradient(firstColor, secondColor, (int) (index * mult), speedColors.get().intValue());
    }

    public static int Temka(int index) {

        if (THEME.is("Nursultan")) {
            return ColorUtils.gradient(ColorUtils.rgb(0, 255, 255),
                    ColorUtils.rgb(0, 0, 255), index + 16, 15);
        }
        if (THEME.is("НУРИК")) {
            return ColorUtils.gradient(ColorUtils.rgb(255, 255, 0),
                    ColorUtils.rgb(255, 0, 255), index + 16, 15);
        }
        if (THEME.is("Морской")) {
            return ColorUtils.gradient(ColorUtils.rgb(5, 63, 111),
                    ColorUtils.rgb(133, 183, 246), index + 16, 15);
        }
        if (THEME.is("Малиновый")) {
            return ColorUtils.gradient(ColorUtils.rgb(109, 10, 40),
                    ColorUtils.rgb(239, 96, 136), index + 16, 15);
        }
        if (THEME.is("Черничный")) {
            return ColorUtils.gradient(ColorUtils.rgb(78, 5, 127),
                    ColorUtils.rgb(193, 140, 234), index + 16, 15);
        }
        if (THEME.is("Необычный")) {
            return ColorUtils.gradient(ColorUtils.rgb(243, 160, 232),
                    ColorUtils.rgb(171, 250, 243), index + 16, 15);
        }
        if (THEME.is("Огненный")) {
            return ColorUtils.gradient(ColorUtils.rgb(194, 21, 0),
                    ColorUtils.rgb(255, 197, 0), index + 16, 15);
        }
        if (THEME.is("Прикольный")) {
            return ColorUtils.gradient(ColorUtils.rgb(82, 241, 171),
                    ColorUtils.rgb(66, 172, 245), index + 16, 15);
        }
        if (THEME.is("Новогодний")) {
            return ColorUtils.gradient(ColorUtils.rgb(190, 5, 60),
                    ColorUtils.rgb(255, 255, 255), index + 16, 15);
        }


        return index * 16;
    }
}
получения цвета Theme.getColor(0)
SS:Посмотреть вложение 281428
возможно скоро солью Цветовую панель как в нурике
сливай будем не против от цветовой понели нурика
 
Забаненный
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
852
Реакции[?]
7
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Забаненный
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
852
Реакции[?]
7
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Забаненный
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
852
Реакции[?]
7
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Начинающий
Статус
Оффлайн
Регистрация
27 Июн 2024
Сообщения
94
Реакции[?]
0
Поинты[?]
0
Код:
package dev.ctrax123.functions.impl.visual;

import dev.ctrax123.functions.api.Category;
import dev.ctrax123.functions.api.Function;
import dev.ctrax123.functions.api.FunctionRegister;
import dev.ctrax123.functions.settings.impl.BooleanSetting;
import dev.ctrax123.functions.settings.impl.ModeSetting;
import dev.ctrax123.functions.settings.impl.SliderSetting;
import dev.ctrax123.utils.render.ColorUtils;

@FunctionRegister(name = "Theme", type = Category.VISUAL)
public class Theme extends Function {


    public static final ModeSetting THEME = new ModeSetting("Выбор Цвета",
            "Nursultan",
            "Nursultan",
            "НУРИК",
            "Морской",
            "Малиновый",
            "Черничный",
            "Необычный",
            "Огненный",
            "Прикольный",
            "Новогодний");

    public static final SliderSetting speedColors = new SliderSetting("Скорость цвета", 10, 0, 20, 1f);

    private final BooleanSetting openColor = new BooleanSetting("Открыть Цветовую панель", false);

    public Theme() {
        toggle();
        addSettings(THEME, speedColors, openColor);
    }
    public static int getColor(int index) {
        return Theme.Temka(index + 16);
    }

    public static int getColor(int index, float mult) {
        return Theme.Temka((int) (index * mult + 16) + 16);
    }

    public static int getColor(int firstColor, int secondColor, int index, float mult) {
        return ColorUtils.gradient(firstColor, secondColor, (int) (index * mult), speedColors.get().intValue());
    }

    public static int Temka(int index) {

        if (THEME.is("Nursultan")) {
            return ColorUtils.gradient(ColorUtils.rgb(0, 255, 255),
                    ColorUtils.rgb(0, 0, 255), index + 16, 15);
        }
        if (THEME.is("НУРИК")) {
            return ColorUtils.gradient(ColorUtils.rgb(255, 255, 0),
                    ColorUtils.rgb(255, 0, 255), index + 16, 15);
        }
        if (THEME.is("Морской")) {
            return ColorUtils.gradient(ColorUtils.rgb(5, 63, 111),
                    ColorUtils.rgb(133, 183, 246), index + 16, 15);
        }
        if (THEME.is("Малиновый")) {
            return ColorUtils.gradient(ColorUtils.rgb(109, 10, 40),
                    ColorUtils.rgb(239, 96, 136), index + 16, 15);
        }
        if (THEME.is("Черничный")) {
            return ColorUtils.gradient(ColorUtils.rgb(78, 5, 127),
                    ColorUtils.rgb(193, 140, 234), index + 16, 15);
        }
        if (THEME.is("Необычный")) {
            return ColorUtils.gradient(ColorUtils.rgb(243, 160, 232),
                    ColorUtils.rgb(171, 250, 243), index + 16, 15);
        }
        if (THEME.is("Огненный")) {
            return ColorUtils.gradient(ColorUtils.rgb(194, 21, 0),
                    ColorUtils.rgb(255, 197, 0), index + 16, 15);
        }
        if (THEME.is("Прикольный")) {
            return ColorUtils.gradient(ColorUtils.rgb(82, 241, 171),
                    ColorUtils.rgb(66, 172, 245), index + 16, 15);
        }
        if (THEME.is("Новогодний")) {
            return ColorUtils.gradient(ColorUtils.rgb(190, 5, 60),
                    ColorUtils.rgb(255, 255, 255), index + 16, 15);
        }


        return index * 16;
    }
}
получения цвета Theme.getColor(0)
SS:Посмотреть вложение 281428
возможно скоро солью Цветовую панель как в нурике
Годно, а когда цветовая панель как в нурике)?
 
Забаненный
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
852
Реакции[?]
7
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Начинающий
Статус
Оффлайн
Регистрация
27 Июн 2024
Сообщения
94
Реакции[?]
0
Поинты[?]
0
Код:
package dev.ctrax123.functions.impl.visual;

import dev.ctrax123.functions.api.Category;
import dev.ctrax123.functions.api.Function;
import dev.ctrax123.functions.api.FunctionRegister;
import dev.ctrax123.functions.settings.impl.BooleanSetting;
import dev.ctrax123.functions.settings.impl.ModeSetting;
import dev.ctrax123.functions.settings.impl.SliderSetting;
import dev.ctrax123.utils.render.ColorUtils;

@FunctionRegister(name = "Theme", type = Category.VISUAL)
public class Theme extends Function {


    public static final ModeSetting THEME = new ModeSetting("Выбор Цвета",
            "Nursultan",
            "Nursultan",
            "НУРИК",
            "Морской",
            "Малиновый",
            "Черничный",
            "Необычный",
            "Огненный",
            "Прикольный",
            "Новогодний");

    public static final SliderSetting speedColors = new SliderSetting("Скорость цвета", 10, 0, 20, 1f);

    private final BooleanSetting openColor = new BooleanSetting("Открыть Цветовую панель", false);

    public Theme() {
        toggle();
        addSettings(THEME, speedColors, openColor);
    }
    public static int getColor(int index) {
        return Theme.Temka(index + 16);
    }

    public static int getColor(int index, float mult) {
        return Theme.Temka((int) (index * mult + 16) + 16);
    }

    public static int getColor(int firstColor, int secondColor, int index, float mult) {
        return ColorUtils.gradient(firstColor, secondColor, (int) (index * mult), speedColors.get().intValue());
    }

    public static int Temka(int index) {

        if (THEME.is("Nursultan")) {
            return ColorUtils.gradient(ColorUtils.rgb(0, 255, 255),
                    ColorUtils.rgb(0, 0, 255), index + 16, 15);
        }
        if (THEME.is("НУРИК")) {
            return ColorUtils.gradient(ColorUtils.rgb(255, 255, 0),
                    ColorUtils.rgb(255, 0, 255), index + 16, 15);
        }
        if (THEME.is("Морской")) {
            return ColorUtils.gradient(ColorUtils.rgb(5, 63, 111),
                    ColorUtils.rgb(133, 183, 246), index + 16, 15);
        }
        if (THEME.is("Малиновый")) {
            return ColorUtils.gradient(ColorUtils.rgb(109, 10, 40),
                    ColorUtils.rgb(239, 96, 136), index + 16, 15);
        }
        if (THEME.is("Черничный")) {
            return ColorUtils.gradient(ColorUtils.rgb(78, 5, 127),
                    ColorUtils.rgb(193, 140, 234), index + 16, 15);
        }
        if (THEME.is("Необычный")) {
            return ColorUtils.gradient(ColorUtils.rgb(243, 160, 232),
                    ColorUtils.rgb(171, 250, 243), index + 16, 15);
        }
        if (THEME.is("Огненный")) {
            return ColorUtils.gradient(ColorUtils.rgb(194, 21, 0),
                    ColorUtils.rgb(255, 197, 0), index + 16, 15);
        }
        if (THEME.is("Прикольный")) {
            return ColorUtils.gradient(ColorUtils.rgb(82, 241, 171),
                    ColorUtils.rgb(66, 172, 245), index + 16, 15);
        }
        if (THEME.is("Новогодний")) {
            return ColorUtils.gradient(ColorUtils.rgb(190, 5, 60),
                    ColorUtils.rgb(255, 255, 255), index + 16, 15);
        }


        return index * 16;
    }
}
получения цвета Theme.getColor(0)
SS:Посмотреть вложение 281428
возможно скоро солью Цветовую панель как в нурике
А куда Theme.getcolor(0) пихать??
 
Начинающий
Статус
Оффлайн
Регистрация
22 Сен 2024
Сообщения
14
Реакции[?]
0
Поинты[?]
0
Сверху Снизу